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.
This commit is contained in:
Samuel Thibault 2024-11-10 00:45:19 +01:00
parent d2e65aa7d6
commit 7b544224f8

View File

@ -26,7 +26,7 @@
#include <bits/types.h> /* For __mode_t and __dev_t. */ #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> # include <bits/types/struct_timespec.h>
#endif #endif