diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-11-10 00:45:19 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-11-10 00:46:42 +0100 |
commit | 7b544224f82d20019f9b28522ebf8114a372d1a2 (patch) | |
tree | 78da25291b12858c8480c4e5ba989f40eb88c730 | |
parent | d2e65aa7d6a6434672abcaecd61877bfa78eeb1d (diff) | |
download | glibc-7b544224f82d20019f9b28522ebf8114a372d1a2.zip glibc-7b544224f82d20019f9b28522ebf8114a372d1a2.tar.gz glibc-7b544224f82d20019f9b28522ebf8114a372d1a2.tar.bz2 |
stat.h: Fix missing declaration of struct timespec
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.
-rw-r--r-- | io/sys/stat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h index 3b4ba80..0e4edb4 100644 --- a/io/sys/stat.h +++ b/io/sys/stat.h @@ -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 |