aboutsummaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2026-03-01 09:18:26 +0200
committerDylan Araps <dylan.araps@gmail.com>2026-03-01 09:18:26 +0200
commit047718235df457cae482eb0f92b06697964f37a6 (patch)
treeeb63e295dd0cc1b12f4027f125c0415f6c66f803 /config.h.in
parent4d9826548a8ea82a71cf70e9f60704909966d038 (diff)
dfm: add initial macOS support.
Thanks to Pinix for the report and necessary changes.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.h.in b/config.h.in
index d4f1218..933ce46 100644
--- a/config.h.in
+++ b/config.h.in
@@ -170,10 +170,14 @@
//
// OS specific flags.
//
-#ifdef __linux__
+#if defined(__linux__)
#define _GNU_SOURCE
#define _BSD_SOURCE
#define _POSIX_C_SOURCE 200809L
+
+#elif defined(__APPLE__)
+#define _DARWIN_C_SOURCE
+#define _POSIX_C_SOURCE 200809L
#endif
//