diff options
author | Ryan Schmidt <git@ryandesign.com> | 2022-01-08 16:06:51 -0600 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-01-21 19:45:20 +0100 |
commit | 617e1f3a75fedb01af851694fe31df5b859239a2 (patch) | |
tree | 298393ea858a8a1df58d687ca27e189495332c1e /config.mk | |
parent | c4e9570d2e465e774f0e2f6da9526524776a9a8c (diff) |
Define _DARWIN_C_SOURCE for mkdtemp and mkstemps
When _POSIX_C_SOURCE is defined, macOS hides the definitions of mkdtemp
and mkstemps, among others. Define _DARWIN_C_SOURCE to counteract that.
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ CFLAGS ?= -g -O2 CFLAGS += -Wall -Wextra -pedantic # Settings for glibc >= 2.19 - may need to be adjusted for other systems -CFLAGS += -std=c11 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 +CFLAGS += -std=c11 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_DARWIN_C_SOURCE ifeq (${curl},1) CFLAGS += -DHAVE_LIBCURL |