From 047718235df457cae482eb0f92b06697964f37a6 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 1 Mar 2026 09:18:26 +0200 Subject: dfm: add initial macOS support. Thanks to Pinix for the report and necessary changes. --- config.h.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config.h.in') 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 // -- cgit v1.2.3