]> 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)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 4 Jun 2024 18:21:04 +0000 (11:21 -0700)
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 787edff23d61b2bd3e740e5e9bce5d519fe9fa07..1200ec0ec85310a4021f682828e072b7622b82dd 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  Paul Eggert  <eggert@cs.ucla.edu>
 
        nstrftime: remove dependency on hard-locale
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