summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2023-08-10 09:08:49 +1000
committerDamien Miller <djm@mindrot.org>2023-08-10 09:08:49 +1000
commit3961ed02dc578517a9d2535128cff5c3a5460d28 (patch)
tree673e840e1d8a7fa11a00c8c53092952ada469da3
parente535fbe2af893046c28adfcd787c1fdbae36a24a (diff)
wrap poll.h include in HAVE_POLL_H
-rw-r--r--regress/unittests/misc/test_ptimeout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/unittests/misc/test_ptimeout.c b/regress/unittests/misc/test_ptimeout.c
index 284f0a1e..cc58ee85 100644
--- a/regress/unittests/misc/test_ptimeout.c
+++ b/regress/unittests/misc/test_ptimeout.c
@@ -14,7 +14,9 @@
#endif
#include <stdlib.h>
#include <string.h>
-#include <poll.h>
+#ifdef HAVE_POLL_H
+# include <poll.h>
+#endif
#include <time.h>
#include "../test_helper/test_helper.h"