From: Daniel Stenberg Date: Wed, 3 Mar 2004 10:09:16 +0000 (+0000) Subject: We let this file include more generic headers that many libtests need anyway X-Git-Tag: curl-7_11_1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e3fa90c9e69541990f2da44a1cb7911886feea7;p=thirdparty%2Fcurl.git We let this file include more generic headers that many libtests need anyway to reduce the amount of #include stuff in each single libNNN.c file. unistd.h was added to prevent select() warnings on FreeBSD --- diff --git a/tests/libtest/test.h b/tests/libtest/test.h index 481716e6f9..f0e13b20f5 100644 --- a/tests/libtest/test.h +++ b/tests/libtest/test.h @@ -10,6 +10,18 @@ #include #include +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_SYS_SELECT_H +/* since so many tests use select(), we can just as well include it here */ +#include +#endif +#ifdef HAVE_UNISTD_H +/* at least somewhat oldish FreeBSD systems need this for select() */ +#include +#endif + #ifndef FALSE #define FALSE 0 #endif