OpenSSH 10.2p1 on OS X 10.3 (darwin 7)
Sevan Janiyan
venture37+openssh at geeklan.co.uk
Fri Oct 17 00:27:30 AEDT 2025
On 16/10/2025 14:15, Sevan Janiyan wrote:
> Fixing that with int poll(struct pollfd *, unsigned long,
> int timeout);
> ]], [[return poll(0, 0, 0);]])],
> [ AC_MSG_RESULT([yes])
> AC_DEFINE(POLL_NFDS_T_ULONG, [1], [Define if poll 2nd arg
> is ulong]) ],
> [ AC_MSG_RESULT([no])]seems to work and the build then
> succeeds out of the box.Sincerely,
Looks like it got mangled. Hopefully this diff wont.
--- configure.ac.orig 2025-10-10 03:38:31.000000000 +0100
+++ configure.ac 2025-10-16 13:40:54.000000000 +0100
@@ -3773,6 +3773,24 @@
#endif
])
+if test "x$ac_cv_type_nfds_t" != "xyes"; then
+ AC_MSG_CHECKING([if poll nfds_t is unsigned long])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include <sys/types.h>
+#ifdef HAVE_POLL_H
+#include <poll.h>
+#endif
+#ifdef HAVE_SYS_POLL_H
+#include <sys/poll.h>
+#endif
+ int poll(struct pollfd *, unsigned long, int timeout);
+ ]], [[return poll(0, 0, 0);]])],
+ [ AC_MSG_RESULT([yes])
+ AC_DEFINE(POLL_NFDS_T_ULONG, [1], [Define if poll 2nd arg is
ulong]) ],
+ [ AC_MSG_RESULT([no])]
+ )
+fi
+
# Decide which sandbox style to use
sandbox_arg=""
AC_ARG_WITH([sandbox],
More information about the openssh-unix-dev
mailing list