[openssh-commits] [openssh] 01/01: wrap poll.h include in HAVE_POLL_H

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Aug 10 09:09:08 AEST 2023


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 3961ed02dc578517a9d2535128cff5c3a5460d28
Author: Damien Miller <djm at mindrot.org>
Date:   Thu Aug 10 09:08:49 2023 +1000

    wrap poll.h include in HAVE_POLL_H
---
 regress/unittests/misc/test_ptimeout.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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"

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list