From a5fa14b9b6fb5edcd060b09703e6efd57bd500e4 Mon Sep 17 00:00:00 2001 From: Thomas BERNARD Date: Fri, 2 Oct 2015 18:53:21 +0200 Subject: [PATCH] dont define _POSIX_C_SOURCE under OS X and FreeBSD --- miniupnpc-libevent/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miniupnpc-libevent/Makefile b/miniupnpc-libevent/Makefile index 4db0e52..430c730 100644 --- a/miniupnpc-libevent/Makefile +++ b/miniupnpc-libevent/Makefile @@ -10,7 +10,11 @@ CFLAGS += -fPIC CFLAGS += -ansi CFLAGS += -Wall -W CFLAGS += -D_BSD_SOURCE +ifneq ($(OS), Darwin) +ifneq ($(OS), FreeBSD) CFLAGS += -D_POSIX_C_SOURCE=200112L +endif +endif CFLAGS += -I/usr/local/include #CFLAGS += -DENABLE_UPNP_EVENTS