]> Savannah Git Hosting - gnulib.git/commitdiff
boot-time, readutmp: Fix missing MinGW include (regr. 2024-05-24).
authorCollin Funk <collin.funk1@gmail.com>
Tue, 4 Jun 2024 18:21:04 +0000 (11:21 -0700)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Jun 2024 22:59:02 +0000 (00:59 +0200)
Reported by Eli Zaretskii in:
<https://lists.gnu.org/archive/html/bug-gnulib/2024-06/msg00044.html>.

* lib/boot-time.c [_WIN32 && !__CYGWIN__]: Remove unnecessary
<sysinfoapi.h> include. Some systems do not have this header and
<windows.h> should have the correct declarations.
* lib/readutmp.c [_WIN32 && !__CYGWIN__]: Likewise.

ChangeLog
lib/boot-time.c
lib/readutmp.c

index 87e652d9f469fe3b43cc8e0ec3c73c922bbb44e7..ebf06f64f08fb7ba5241512f1b4f64bb545f6d54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-06-04  Collin Funk  <collin.funk1@gmail.com>
+
+       boot-time, readutmp: Fix missing MinGW include (regr. 2024-05-24).
+       Reported by Eli Zaretskii in:
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-06/msg00044.html>.
+       * lib/boot-time.c [_WIN32 && !__CYGWIN__]: Remove unnecessary
+       <sysinfoapi.h> include. Some systems do not have this header and
+       <windows.h> should have the correct declarations.
+       * lib/readutmp.c [_WIN32 && !__CYGWIN__]: Likewise.
+
 2024-06-03  Bruno Haible  <bruno@clisp.org>
 
        readlinkat: Work around a Cygwin 3.3.6 bug.
index 71562dcf751af3ca05d903e319d75f997f7776ee..515fc48069a4757eab92753cbce9bf33a4b77e09 100644 (file)
@@ -46,7 +46,6 @@
 #if defined _WIN32 && ! defined __CYGWIN__
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
-# include <sysinfoapi.h>
 # include <sys/time.h>
 #endif
 
index 82b9d4ca33af0311252857c4f98ca103a09c1571..10d79d1d81a5eeb9da7cbfcc72f214430abcfa2c 100644 (file)
@@ -54,7 +54,6 @@
 #if defined _WIN32 && ! defined __CYGWIN__
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
-# include <sysinfoapi.h>
 # include <sys/time.h>
 #endif