summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/POSIX')
-rw-r--r--testsuites/libtests/POSIX/calloc.c4
-rw-r--r--testsuites/libtests/POSIX/clock_gettime.c4
-rw-r--r--testsuites/libtests/POSIX/close.c4
-rw-r--r--testsuites/libtests/POSIX/dup2.c4
-rw-r--r--testsuites/libtests/POSIX/fcntl.c4
-rw-r--r--testsuites/libtests/POSIX/flockfile.c4
-rw-r--r--testsuites/libtests/POSIX/fork.c4
-rw-r--r--testsuites/libtests/POSIX/free.c4
-rw-r--r--testsuites/libtests/POSIX/fstat.c4
-rw-r--r--testsuites/libtests/POSIX/ftrylockfile.c4
-rw-r--r--testsuites/libtests/POSIX/funlockfile.c4
-rw-r--r--testsuites/libtests/POSIX/getdents.c4
-rw-r--r--testsuites/libtests/POSIX/getlogin.c4
-rw-r--r--testsuites/libtests/POSIX/getpwnam.c4
-rw-r--r--testsuites/libtests/POSIX/getpwuid.c4
-rw-r--r--testsuites/libtests/POSIX/gettimeofday.c4
-rw-r--r--testsuites/libtests/POSIX/getuid.c4
-rw-r--r--testsuites/libtests/POSIX/htonl.c4
-rw-r--r--testsuites/libtests/POSIX/issetugid.c4
-rw-r--r--testsuites/libtests/POSIX/kill.c4
-rw-r--r--testsuites/libtests/POSIX/longjmp.c4
-rw-r--r--testsuites/libtests/POSIX/lseek.c4
-rw-r--r--testsuites/libtests/POSIX/lstat.c4
-rw-r--r--testsuites/libtests/POSIX/malloc.c4
-rw-r--r--testsuites/libtests/POSIX/nanosleep.c4
-rw-r--r--testsuites/libtests/POSIX/open.c4
-rw-r--r--testsuites/libtests/POSIX/pipe.c4
-rw-r--r--testsuites/libtests/POSIX/posix_memalign.c4
-rw-r--r--testsuites/libtests/POSIX/read.c4
-rw-r--r--testsuites/libtests/POSIX/readv.c4
-rw-r--r--testsuites/libtests/POSIX/realloc.c4
-rw-r--r--testsuites/libtests/POSIX/setjmp.c4
-rw-r--r--testsuites/libtests/POSIX/sigaddset.c4
-rw-r--r--testsuites/libtests/POSIX/sigdelset.c4
-rw-r--r--testsuites/libtests/POSIX/sigemptyset.c4
-rw-r--r--testsuites/libtests/POSIX/sigfillset.c4
-rw-r--r--testsuites/libtests/POSIX/sigismember.c4
-rw-r--r--testsuites/libtests/POSIX/sigprocmask.c4
-rw-r--r--testsuites/libtests/POSIX/stat.c4
-rw-r--r--testsuites/libtests/POSIX/unlink.c4
-rw-r--r--testsuites/libtests/POSIX/vfork.c4
-rw-r--r--testsuites/libtests/POSIX/wait.c4
-rw-r--r--testsuites/libtests/POSIX/waitpid.c4
-rw-r--r--testsuites/libtests/POSIX/write.c4
-rw-r--r--testsuites/libtests/POSIX/writev.c4
45 files changed, 180 insertions, 0 deletions
diff --git a/testsuites/libtests/POSIX/calloc.c b/testsuites/libtests/POSIX/calloc.c
index e46ae1a2f3..bd04faa800 100644
--- a/testsuites/libtests/POSIX/calloc.c
+++ b/testsuites/libtests/POSIX/calloc.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
int
diff --git a/testsuites/libtests/POSIX/clock_gettime.c b/testsuites/libtests/POSIX/clock_gettime.c
index 6172a41b68..d3d86b572d 100644
--- a/testsuites/libtests/POSIX/clock_gettime.c
+++ b/testsuites/libtests/POSIX/clock_gettime.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <time.h>
int
diff --git a/testsuites/libtests/POSIX/close.c b/testsuites/libtests/POSIX/close.c
index 832320d4e3..5468adc160 100644
--- a/testsuites/libtests/POSIX/close.c
+++ b/testsuites/libtests/POSIX/close.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
int
diff --git a/testsuites/libtests/POSIX/dup2.c b/testsuites/libtests/POSIX/dup2.c
index c9d231217c..b090d63432 100644
--- a/testsuites/libtests/POSIX/dup2.c
+++ b/testsuites/libtests/POSIX/dup2.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
int
diff --git a/testsuites/libtests/POSIX/fcntl.c b/testsuites/libtests/POSIX/fcntl.c
index 3e4844e957..dc59d5db3c 100644
--- a/testsuites/libtests/POSIX/fcntl.c
+++ b/testsuites/libtests/POSIX/fcntl.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <fcntl.h>
diff --git a/testsuites/libtests/POSIX/flockfile.c b/testsuites/libtests/POSIX/flockfile.c
index 7ab69a49f2..4d1f23ee34 100644
--- a/testsuites/libtests/POSIX/flockfile.c
+++ b/testsuites/libtests/POSIX/flockfile.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
int main(void)
diff --git a/testsuites/libtests/POSIX/fork.c b/testsuites/libtests/POSIX/fork.c
index 1fc5d5d977..d4392be4e0 100644
--- a/testsuites/libtests/POSIX/fork.c
+++ b/testsuites/libtests/POSIX/fork.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
int
diff --git a/testsuites/libtests/POSIX/free.c b/testsuites/libtests/POSIX/free.c
index e139949cf0..8473084fb1 100644
--- a/testsuites/libtests/POSIX/free.c
+++ b/testsuites/libtests/POSIX/free.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
int
diff --git a/testsuites/libtests/POSIX/fstat.c b/testsuites/libtests/POSIX/fstat.c
index f734917bf7..29c38d6eae 100644
--- a/testsuites/libtests/POSIX/fstat.c
+++ b/testsuites/libtests/POSIX/fstat.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
diff --git a/testsuites/libtests/POSIX/ftrylockfile.c b/testsuites/libtests/POSIX/ftrylockfile.c
index 423e6bfad7..8e99406493 100644
--- a/testsuites/libtests/POSIX/ftrylockfile.c
+++ b/testsuites/libtests/POSIX/ftrylockfile.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
int main(void)
diff --git a/testsuites/libtests/POSIX/funlockfile.c b/testsuites/libtests/POSIX/funlockfile.c
index 93017a464c..571b9e8b80 100644
--- a/testsuites/libtests/POSIX/funlockfile.c
+++ b/testsuites/libtests/POSIX/funlockfile.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
int main(void)
diff --git a/testsuites/libtests/POSIX/getdents.c b/testsuites/libtests/POSIX/getdents.c
index 74b4f119fb..bb731e9862 100644
--- a/testsuites/libtests/POSIX/getdents.c
+++ b/testsuites/libtests/POSIX/getdents.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <dirent.h>
int
diff --git a/testsuites/libtests/POSIX/getlogin.c b/testsuites/libtests/POSIX/getlogin.c
index 9cfd9f9e66..f5f38a7ad2 100644
--- a/testsuites/libtests/POSIX/getlogin.c
+++ b/testsuites/libtests/POSIX/getlogin.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
int
diff --git a/testsuites/libtests/POSIX/getpwnam.c b/testsuites/libtests/POSIX/getpwnam.c
index 89f307e4b9..c220871de4 100644
--- a/testsuites/libtests/POSIX/getpwnam.c
+++ b/testsuites/libtests/POSIX/getpwnam.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <pwd.h>
diff --git a/testsuites/libtests/POSIX/getpwuid.c b/testsuites/libtests/POSIX/getpwuid.c
index 42e36a22d8..fb4d050d2a 100644
--- a/testsuites/libtests/POSIX/getpwuid.c
+++ b/testsuites/libtests/POSIX/getpwuid.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <pwd.h>
diff --git a/testsuites/libtests/POSIX/gettimeofday.c b/testsuites/libtests/POSIX/gettimeofday.c
index a5ccd3d1d3..f3fa6736ef 100644
--- a/testsuites/libtests/POSIX/gettimeofday.c
+++ b/testsuites/libtests/POSIX/gettimeofday.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/time.h>
int
diff --git a/testsuites/libtests/POSIX/getuid.c b/testsuites/libtests/POSIX/getuid.c
index 48c7ad135d..d4b942c58d 100644
--- a/testsuites/libtests/POSIX/getuid.c
+++ b/testsuites/libtests/POSIX/getuid.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <sys/types.h>
diff --git a/testsuites/libtests/POSIX/htonl.c b/testsuites/libtests/POSIX/htonl.c
index 71aa969db7..ecdaa9c05e 100644
--- a/testsuites/libtests/POSIX/htonl.c
+++ b/testsuites/libtests/POSIX/htonl.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <arpa/inet.h>
int
diff --git a/testsuites/libtests/POSIX/issetugid.c b/testsuites/libtests/POSIX/issetugid.c
index f414cf2f6f..01ead61a5f 100644
--- a/testsuites/libtests/POSIX/issetugid.c
+++ b/testsuites/libtests/POSIX/issetugid.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
int
diff --git a/testsuites/libtests/POSIX/kill.c b/testsuites/libtests/POSIX/kill.c
index ab6f38c823..1ab2d77b0a 100644
--- a/testsuites/libtests/POSIX/kill.c
+++ b/testsuites/libtests/POSIX/kill.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <signal.h>
int
diff --git a/testsuites/libtests/POSIX/longjmp.c b/testsuites/libtests/POSIX/longjmp.c
index 1eb8291ab1..68f0f83816 100644
--- a/testsuites/libtests/POSIX/longjmp.c
+++ b/testsuites/libtests/POSIX/longjmp.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <setjmp.h>
int
diff --git a/testsuites/libtests/POSIX/lseek.c b/testsuites/libtests/POSIX/lseek.c
index f9309fdf59..169d55c1c6 100644
--- a/testsuites/libtests/POSIX/lseek.c
+++ b/testsuites/libtests/POSIX/lseek.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <unistd.h>
diff --git a/testsuites/libtests/POSIX/lstat.c b/testsuites/libtests/POSIX/lstat.c
index 0139064eca..d92f86e342 100644
--- a/testsuites/libtests/POSIX/lstat.c
+++ b/testsuites/libtests/POSIX/lstat.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
diff --git a/testsuites/libtests/POSIX/malloc.c b/testsuites/libtests/POSIX/malloc.c
index 0e936b36da..2f16bd3472 100644
--- a/testsuites/libtests/POSIX/malloc.c
+++ b/testsuites/libtests/POSIX/malloc.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
int
diff --git a/testsuites/libtests/POSIX/nanosleep.c b/testsuites/libtests/POSIX/nanosleep.c
index af0ff8f786..359ce76d58 100644
--- a/testsuites/libtests/POSIX/nanosleep.c
+++ b/testsuites/libtests/POSIX/nanosleep.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <time.h>
int
diff --git a/testsuites/libtests/POSIX/open.c b/testsuites/libtests/POSIX/open.c
index b3848ab113..f7d60bb237 100644
--- a/testsuites/libtests/POSIX/open.c
+++ b/testsuites/libtests/POSIX/open.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/testsuites/libtests/POSIX/pipe.c b/testsuites/libtests/POSIX/pipe.c
index debd3a0387..85d15af147 100644
--- a/testsuites/libtests/POSIX/pipe.c
+++ b/testsuites/libtests/POSIX/pipe.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
int
diff --git a/testsuites/libtests/POSIX/posix_memalign.c b/testsuites/libtests/POSIX/posix_memalign.c
index f49dcb3413..a224100f3e 100644
--- a/testsuites/libtests/POSIX/posix_memalign.c
+++ b/testsuites/libtests/POSIX/posix_memalign.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
int
diff --git a/testsuites/libtests/POSIX/read.c b/testsuites/libtests/POSIX/read.c
index 5b0a657511..c495480a40 100644
--- a/testsuites/libtests/POSIX/read.c
+++ b/testsuites/libtests/POSIX/read.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
int
diff --git a/testsuites/libtests/POSIX/readv.c b/testsuites/libtests/POSIX/readv.c
index 785a24cfef..12b804e275 100644
--- a/testsuites/libtests/POSIX/readv.c
+++ b/testsuites/libtests/POSIX/readv.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/uio.h>
int
diff --git a/testsuites/libtests/POSIX/realloc.c b/testsuites/libtests/POSIX/realloc.c
index e3e117ee52..ac972dbc46 100644
--- a/testsuites/libtests/POSIX/realloc.c
+++ b/testsuites/libtests/POSIX/realloc.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
int
diff --git a/testsuites/libtests/POSIX/setjmp.c b/testsuites/libtests/POSIX/setjmp.c
index 07ccec8b03..b460c6796d 100644
--- a/testsuites/libtests/POSIX/setjmp.c
+++ b/testsuites/libtests/POSIX/setjmp.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <setjmp.h>
int
diff --git a/testsuites/libtests/POSIX/sigaddset.c b/testsuites/libtests/POSIX/sigaddset.c
index 56f90a7715..4a01457f40 100644
--- a/testsuites/libtests/POSIX/sigaddset.c
+++ b/testsuites/libtests/POSIX/sigaddset.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <signal.h>
int
diff --git a/testsuites/libtests/POSIX/sigdelset.c b/testsuites/libtests/POSIX/sigdelset.c
index 859df18e74..58b1bcc292 100644
--- a/testsuites/libtests/POSIX/sigdelset.c
+++ b/testsuites/libtests/POSIX/sigdelset.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <signal.h>
int
diff --git a/testsuites/libtests/POSIX/sigemptyset.c b/testsuites/libtests/POSIX/sigemptyset.c
index def1d3c888..effda5e826 100644
--- a/testsuites/libtests/POSIX/sigemptyset.c
+++ b/testsuites/libtests/POSIX/sigemptyset.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <signal.h>
int
diff --git a/testsuites/libtests/POSIX/sigfillset.c b/testsuites/libtests/POSIX/sigfillset.c
index 17cfdc036d..521c85f08d 100644
--- a/testsuites/libtests/POSIX/sigfillset.c
+++ b/testsuites/libtests/POSIX/sigfillset.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <signal.h>
int
diff --git a/testsuites/libtests/POSIX/sigismember.c b/testsuites/libtests/POSIX/sigismember.c
index 802fcd568d..92ff877120 100644
--- a/testsuites/libtests/POSIX/sigismember.c
+++ b/testsuites/libtests/POSIX/sigismember.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <signal.h>
int
diff --git a/testsuites/libtests/POSIX/sigprocmask.c b/testsuites/libtests/POSIX/sigprocmask.c
index 96b437b358..6fc37b379d 100644
--- a/testsuites/libtests/POSIX/sigprocmask.c
+++ b/testsuites/libtests/POSIX/sigprocmask.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <signal.h>
int
diff --git a/testsuites/libtests/POSIX/stat.c b/testsuites/libtests/POSIX/stat.c
index 352da2a4a2..889eb4d620 100644
--- a/testsuites/libtests/POSIX/stat.c
+++ b/testsuites/libtests/POSIX/stat.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
diff --git a/testsuites/libtests/POSIX/unlink.c b/testsuites/libtests/POSIX/unlink.c
index 36c4ddf1ad..25ed5cc499 100644
--- a/testsuites/libtests/POSIX/unlink.c
+++ b/testsuites/libtests/POSIX/unlink.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
int
diff --git a/testsuites/libtests/POSIX/vfork.c b/testsuites/libtests/POSIX/vfork.c
index a947cce144..7868ae686a 100644
--- a/testsuites/libtests/POSIX/vfork.c
+++ b/testsuites/libtests/POSIX/vfork.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <unistd.h>
diff --git a/testsuites/libtests/POSIX/wait.c b/testsuites/libtests/POSIX/wait.c
index 89a6742fe9..9069bdbe2d 100644
--- a/testsuites/libtests/POSIX/wait.c
+++ b/testsuites/libtests/POSIX/wait.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/wait.h>
diff --git a/testsuites/libtests/POSIX/waitpid.c b/testsuites/libtests/POSIX/waitpid.c
index 35d55aaa2e..991d27a8ed 100644
--- a/testsuites/libtests/POSIX/waitpid.c
+++ b/testsuites/libtests/POSIX/waitpid.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/wait.h>
diff --git a/testsuites/libtests/POSIX/write.c b/testsuites/libtests/POSIX/write.c
index 8ee6f849bb..211e7d3b84 100644
--- a/testsuites/libtests/POSIX/write.c
+++ b/testsuites/libtests/POSIX/write.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
int
diff --git a/testsuites/libtests/POSIX/writev.c b/testsuites/libtests/POSIX/writev.c
index aeaa39e9a0..b0312d42c7 100644
--- a/testsuites/libtests/POSIX/writev.c
+++ b/testsuites/libtests/POSIX/writev.c
@@ -6,6 +6,10 @@
* is freely granted, provided that this notice is preserved.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/uio.h>
int