Unverified Commit 617e1f3a authored by Ryan Schmidt's avatar Ryan Schmidt Committed by Birte Kristina Friesel
Browse files

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.
parent c4e9570d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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