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