fix for Solaris 11 compilation

see #216
This commit is contained in:
Thomas Bernard 2016-11-10 21:55:33 +01:00
parent 7db2ae5cdd
commit 71ce1d6dfa
2 changed files with 5 additions and 0 deletions

View File

@ -43,10 +43,12 @@ 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

View File

@ -73,6 +73,9 @@ struct sockaddr_un {
#if !defined(HAS_IP_MREQN) && !defined(_WIN32)
#include <sys/ioctl.h>
#if defined(__sun)
#include <sys/sockio.h>
#endif
#endif
#if defined(HAS_IP_MREQN) && defined(NEED_STRUCT_IP_MREQN)