diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-03 10:09:16 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-03 10:09:16 +0000 |
commit | 6e3fa90c9e69541990f2da44a1cb7911886feea7 (patch) | |
tree | 21b3f4c47b2c93517d6823094ba117c64bc8d624 /tests | |
parent | b2ef40731a0dc3f30bfcf98bf678cb35d4fd2ed3 (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/test.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/libtest/test.h b/tests/libtest/test.h index 481716e6f..f0e13b20f 100644 --- a/tests/libtest/test.h +++ b/tests/libtest/test.h @@ -10,6 +10,18 @@ #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 |