]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
stat.h: Fix missing declaration of struct timespec
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 9 Nov 2024 23:45:19 +0000 (00:45 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 9 Nov 2024 23:46:42 +0000 (00:46 +0100)
When building with e.g. -std=c99 and _ATFILE_SOURCE, stat.h was missing
including bits/types/struct_timespec.h to get the struct timespec
declaration for utimensat.

io/sys/stat.h

index 3b4ba80132d0b70390e318602d165665c56c36ff..0e4edb483d1f20616040524577ceb004c6b2618d 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <bits/types.h>                /* For __mode_t and __dev_t.  */
 
-#ifdef __USE_XOPEN2K8
+#if defined(__USE_ATFILE) || defined(__USE_XOPEN2K8)
 # include <bits/types/struct_timespec.h>
 #endif