From 617e1f3a75fedb01af851694fe31df5b859239a2 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Sat, 8 Jan 2022 16:06:51 -0600 Subject: 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. --- config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.mk b/config.mk index 35fdf4b..2d63f72 100644 --- a/config.mk +++ b/config.mk @@ -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 -- cgit v1.2.3