diff options
-rw-r--r-- | lib/replace/replace-test.h | 3 | ||||
-rw-r--r-- | lib/replace/test/getifaddrs.c | 1 | ||||
-rw-r--r-- | lib/replace/test/os2_delete.c | 1 | ||||
-rw-r--r-- | lib/replace/test/testsuite.c | 4 |
4 files changed, 8 insertions, 1 deletions
diff --git a/lib/replace/replace-test.h b/lib/replace/replace-test.h index 95fb7abe1c..a522853351 100644 --- a/lib/replace/replace-test.h +++ b/lib/replace/replace-test.h @@ -1,6 +1,9 @@ #ifndef __LIB_REPLACE_REPLACE_TEST_H__ #define __LIB_REPLACE_REPLACE_TEST_H__ +#include <stdbool.h> +struct torture_context; + bool torture_local_replace(struct torture_context *ctx); int libreplace_test_strptime(void); int test_readdir_os2_delete(void); diff --git a/lib/replace/test/getifaddrs.c b/lib/replace/test/getifaddrs.c index 8b00ac2f40..d325d8bb1b 100644 --- a/lib/replace/test/getifaddrs.c +++ b/lib/replace/test/getifaddrs.c @@ -22,6 +22,7 @@ #ifndef AUTOCONF_TEST #include "replace.h" #include "system/network.h" +#include "replace-test.h" #endif #ifdef HAVE_INET_NTOP diff --git a/lib/replace/test/os2_delete.c b/lib/replace/test/os2_delete.c index 9d760bfdc2..a11ed3b370 100644 --- a/lib/replace/test/os2_delete.c +++ b/lib/replace/test/os2_delete.c @@ -12,6 +12,7 @@ #include <errno.h> #include <string.h> #include <fcntl.h> +#include "replace-test.h" #define NUM_FILES 700 #define READDIR_SIZE 100 diff --git a/lib/replace/test/testsuite.c b/lib/replace/test/testsuite.c index 0e455f2317..0c1fac67a0 100644 --- a/lib/replace/test/testsuite.c +++ b/lib/replace/test/testsuite.c @@ -48,6 +48,9 @@ #define TESTFILE "testfile.dat" +struct torture_context; +bool torture_local_replace(struct torture_context *ctx); + /* test ftruncate() function */ @@ -1052,7 +1055,6 @@ static int test_memmem(void) } -struct torture_context; bool torture_local_replace(struct torture_context *ctx) { bool ret = true; |