From: Bruno Haible Date: Thu, 9 Jan 2025 01:08:34 +0000 (+0100) Subject: sys_select-h: Define suseconds_t on native Windows. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=3ca73b4b08dbcab44cab3fca99854cad2887853e;p=gnulib.git 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/ChangeLog b/ChangeLog index 42ea1225ac..a1179e22b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-01-08 Bruno Haible + + 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 pselect: Document this module. 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