aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdeps
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-05-30 14:09:45 +0000
committerLaurent Bercot <ska@appnovation.com>2025-05-30 14:09:45 +0000
commit795c7ef8c99bf330213b53fa5146616ca3022ff6 (patch)
treed1b875e1c0f8002c89f52cd1d853e4f4b3f54365 /src/sysdeps
parent356e37cb9cceeca82df50ef99b68979eb3ff0136 (diff)
downloadskalibs-795c7ef8c99bf330213b53fa5146616ca3022ff6.tar.gz
Try another approach for the stat.h workaround
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/sysdeps')
-rw-r--r--src/sysdeps/trystatim.c4
-rw-r--r--src/sysdeps/trystatimespec.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/sysdeps/trystatim.c b/src/sysdeps/trystatim.c
index 88f6a95..3df38b8 100644
--- a/src/sysdeps/trystatim.c
+++ b/src/sysdeps/trystatim.c
@@ -1,6 +1,8 @@
/* ISC license. */
-#undef _POSIX_C_SOURCE
+#ifndef _DARWIN_C_SOURCE
+#define _DARWIN_C_SOURCE
+#endif
#include <sys/stat.h>
#include <time.h>
diff --git a/src/sysdeps/trystatimespec.c b/src/sysdeps/trystatimespec.c
index 75b1231..9e03bc2 100644
--- a/src/sysdeps/trystatimespec.c
+++ b/src/sysdeps/trystatimespec.c
@@ -1,6 +1,8 @@
/* ISC license. */
-#undef _POSIX_C_SOURCE
+#ifndef _DARWIN_C_SOURCE
+#define _DARWIN_C_SOURCE
+#endif
#include <sys/stat.h>
#include <time.h>