From 2dcdf7749fff5ec0182d598de5d27803fd6c2b56 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 11 Nov 2016 08:54:07 -0500 Subject: [PATCH] enable extensions when compiling under Solaris --- miniupnpc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniupnpc/Makefile b/miniupnpc/Makefile index 90be89b..6dcf4b1 100644 --- a/miniupnpc/Makefile +++ b/miniupnpc/Makefile @@ -43,12 +43,10 @@ CFLAGS += -D_NETBSD_SOURCE endif ifneq ($(OS), FreeBSD) ifneq ($(OS), Darwin) -ifneq ($(OS), SunOS) #CFLAGS += -D_POSIX_C_SOURCE=200112L CFLAGS += -D_XOPEN_SOURCE=600 endif endif -endif #CFLAGS += -ansi # -DNO_GETADDRINFO INSTALL = install @@ -68,6 +66,8 @@ JNAERATORBASEURL = https://repo1.maven.org/maven2/com/nativelibs4java/jnaerator/ ifeq (SunOS, $(OS)) LDFLAGS=-lsocket -lnsl -lresolv + CFLAGS += -D__EXTENSIONS__ + CFLAGS += -std=c99 endif # APIVERSION is used to build SONAME