]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
We let this file include more generic headers that many libtests need anyway
authorDaniel Stenberg <daniel@haxx.se>
Wed, 3 Mar 2004 10:09:16 +0000 (10:09 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 3 Mar 2004 10:09:16 +0000 (10:09 +0000)
to reduce the amount of #include stuff in each single libNNN.c file.
unistd.h was added to prevent select() warnings on FreeBSD

tests/libtest/test.h

index 481716e6f937d38a2c9e4a36be515b7aa6602016..f0e13b20f5f2aad53879cd9412ddeaaa287bd722 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_SYS_SELECT_H
+/* since so many tests use select(), we can just as well include it here */
+#include <sys/select.h>
+#endif
+#ifdef HAVE_UNISTD_H
+/* at least somewhat oldish FreeBSD systems need this for select() */
+#include <unistd.h>
+#endif
+
 #ifndef FALSE
 #define FALSE 0
 #endif