commit ba4bc75

nia  ·  2019-12-11 19:00:11 +0000 UTC
parent dbf96c5
Define _NETBSD_SOURCE on NetBSD for mkostemp
1 files changed,  +5, -0
+5, -0
 1@@ -95,6 +95,11 @@ FINAL_CFLAGS += -Werror=implicit-function-declaration -Werror=implicit-int \
 2                 -Werror=pointer-sign -Werror=pointer-arith \
 3                 -Wall -Wno-missing-braces
 4 
 5+ifeq ($(shell uname),NetBSD)
 6+    # Needed for mkostemp
 7+    FINAL_CPPFLAGS += -D_NETBSD_SOURCE
 8+endif
 9+
10 ifeq ($(ENABLE_DEBUG),1)
11     FINAL_CPPFLAGS += -DENABLE_DEBUG=1
12     FINAL_CFLAGS += -g