]> Savannah Git Hosting - gnulib.git/commitdiff
utimens: Fix missing declarations on NetBSD (regr. 2024-09-16).
authorCollin Funk <collin.funk1@gmail.com>
Sun, 23 Mar 2025 23:36:26 +0000 (16:36 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 23 Mar 2025 23:36:26 +0000 (16:36 -0700)
* lib/utimens.h [HAVE_UTIMENS || HAVE_LUTIMENS]: Include <sys/stat.h>
instead of <sys/time.h> for the declarations of these functions on
NetBSD.

ChangeLog
lib/utimens.h

index 10c428e81f07d1e965dea829be858a205a4e5c55..c849ceb122f381e2cdc056867cc237926aee32ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2025-03-23  Collin Funk  <collin.funk1@gmail.com>
 
+       utimens: Fix missing declarations on NetBSD (regr. 2024-09-16).
+       * lib/utimens.h [HAVE_UTIMENS || HAVE_LUTIMENS]: Include <sys/stat.h>
+       instead of <sys/time.h> for the declarations of these functions on
+       NetBSD.
+
        newlocale: Fix implicit function declarations.
        * lib/newlocale.c [HAVE_NEWLOCALE]: Include string.h for strlen and
        strcmp, stdio.h for sprintf, and stdlib.h for free.
index 007958dd93322e4d0227886cb19fc633e4862666..62ea7d8f5fd5a6a5ee9887c330e71a635ba6d86c 100644 (file)
@@ -25,7 +25,7 @@
 #include <time.h>
 
 #if HAVE_UTIMENS || HAVE_LUTIMENS
-# include <sys/time.h>
+# include <sys/stat.h>
 #endif
 
 #ifdef __cplusplus