enable extensions when compiling under Solaris

This commit is contained in:
Thomas Bernard 2016-11-11 08:54:07 -05:00
parent 3e80385941
commit 2dcdf7749f
1 changed files with 2 additions and 2 deletions

View File

@ -43,12 +43,10 @@ CFLAGS += -D_NETBSD_SOURCE
endif endif
ifneq ($(OS), FreeBSD) ifneq ($(OS), FreeBSD)
ifneq ($(OS), Darwin) ifneq ($(OS), Darwin)
ifneq ($(OS), SunOS)
#CFLAGS += -D_POSIX_C_SOURCE=200112L #CFLAGS += -D_POSIX_C_SOURCE=200112L
CFLAGS += -D_XOPEN_SOURCE=600 CFLAGS += -D_XOPEN_SOURCE=600
endif endif
endif endif
endif
#CFLAGS += -ansi #CFLAGS += -ansi
# -DNO_GETADDRINFO # -DNO_GETADDRINFO
INSTALL = install INSTALL = install
@ -68,6 +66,8 @@ JNAERATORBASEURL = https://repo1.maven.org/maven2/com/nativelibs4java/jnaerator/
ifeq (SunOS, $(OS)) ifeq (SunOS, $(OS))
LDFLAGS=-lsocket -lnsl -lresolv LDFLAGS=-lsocket -lnsl -lresolv
CFLAGS += -D__EXTENSIONS__
CFLAGS += -std=c99
endif endif
# APIVERSION is used to build SONAME # APIVERSION is used to build SONAME