aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-01-22 14:52:54 +0000
committerYang Tse <yangsita@gmail.com>2008-01-22 14:52:54 +0000
commitbdb2beb8e4b2f8a2f2ffb47e43046893498ee62d (patch)
tree03e4ed54d3d613b156b16d1b8a85eb9202789e5c /tests/server
parent727e23322f98f961891c4cba2b1a438237b2c32e (diff)
check availability of poll.h header at configuration time, and include
it when sys/poll.h is unavailable
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/server/util.c b/tests/server/util.c
index 8017081fa..95f8c521e 100644
--- a/tests/server/util.c
+++ b/tests/server/util.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -47,6 +47,8 @@
#endif
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
+#elif defined(HAVE_POLL_H)
+#include <poll.h>
#endif
#define ENABLE_CURLX_PRINTF