tests: include tests.h instead of config.h
Automatically edit tests/*.c files using the following perl one-liner:
perl -0777 -pi -e \
's/#ifdef HAVE_CONFIG_H\n# include "config\.h"\n#endif\n*/#include "tests.h"\n/' \
tests/*.c
diff --git a/tests/truncate64.c b/tests/truncate64.c
index a617c69..ba7f827 100644
--- a/tests/truncate64.c
+++ b/tests/truncate64.c
@@ -25,10 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
+#include "tests.h"
#include <sys/syscall.h>
#ifdef __NR_truncate64