From 7b544224f82d20019f9b28522ebf8114a372d1a2 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 10 Nov 2024 00:45:19 +0100 Subject: [PATCH] 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. --- io/sys/stat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/sys/stat.h b/io/sys/stat.h index 3b4ba80132..0e4edb483d 100644 --- a/io/sys/stat.h +++ b/io/sys/stat.h @@ -26,7 +26,7 @@ #include /* For __mode_t and __dev_t. */ -#ifdef __USE_XOPEN2K8 +#if defined(__USE_ATFILE) || defined(__USE_XOPEN2K8) # include #endif -- 2.47.3