>       * tests/test-sys_select-h.c: Check for some more types and for
>       FD_SETSIZE.
>       (FD_ISSET): Expect type of second parameter to be 'const fd_set *'.

This led to a compilation error on native Windows. Fixed as follows:


2025-01-08  Bruno Haible  <br...@clisp.org>

        sys_select-h: Define suseconds_t on native Windows.
        * lib/sys_select.in.h (suseconds_t): New type.
        (GNULIB_defined_suseconds_t): New macro.

diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h
index f55687b571..a06725020d 100644
--- a/lib/sys_select.in.h
+++ b/lib/sys_select.in.h
@@ -165,6 +165,12 @@
 
 #if @HAVE_WINSOCK2_H@
 
+/* Define type 'suseconds_t'.  */
+# if !GNULIB_defined_suseconds_t
+typedef int suseconds_t;
+#  define GNULIB_defined_suseconds_t 1
+# endif
+
 # if !GNULIB_defined_rpl_fd_isset
 
 /* Re-define FD_ISSET to avoid a WSA call while we are not using




Reply via email to