]> Savannah Git Hosting - gnulib.git/commitdiff
sys_select-h: Define suseconds_t on native Windows.
authorBruno Haible <bruno@clisp.org>
Thu, 9 Jan 2025 01:08:34 +0000 (02:08 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 9 Jan 2025 01:08:34 +0000 (02:08 +0100)
* lib/sys_select.in.h (suseconds_t): New type.
(GNULIB_defined_suseconds_t): New macro.

ChangeLog
lib/sys_select.in.h

index 42ea1225ac3230cc65471c159809efd828565952..a1179e22b1efdbafb51a3fcaa832f5a76bec3688 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-01-08  Bruno Haible  <bruno@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.
+
 2025-01-08  Bruno Haible  <bruno@clisp.org>
 
        pselect: Document this module.
index f55687b5717e669127b57c46d813155e25f386b5..a06725020d2ff94a49d94695872ce83affba03ff 100644 (file)
 
 #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