]> 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)
committerBruno Haible <bruno@clisp.org>
Tue, 1 Apr 2025 14:40:58 +0000 (16:40 +0200)
* 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 e0a18ebd2512afea01a7c3985634448eabc333fc..b6a0671147fafc513d1b1c3e2f069b1384f9098c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +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.
+
 2025-03-21  Bruno Haible  <bruno@clisp.org>
 
        getloadavg: Improve Linux and Android support.
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