]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
wrap poll.h include in HAVE_POLL_H
authorDamien Miller <djm@mindrot.org>
Wed, 9 Aug 2023 23:08:49 +0000 (09:08 +1000)
committerDamien Miller <djm@mindrot.org>
Wed, 9 Aug 2023 23:08:49 +0000 (09:08 +1000)
regress/unittests/misc/test_ptimeout.c

index 284f0a1eed008c32ab1c68961f40d30c299f4b2d..cc58ee8547c3f76c1067db92abb2a7cda21beedf 100644 (file)
@@ -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"