From d01676fc732d9284d509afa7eb6b7efd8d6018a6 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 22 Aug 2011 14:26:01 +0000 Subject: [PATCH] build: define _XOPEN_SOURCE=500 on SunOS Exposes msghdr.msg_flags, required for UDP support. --- config-unix.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-unix.mk b/config-unix.mk index aa60253d..ee8848e5 100644 --- a/config-unix.mk +++ b/config-unix.mk @@ -32,7 +32,7 @@ CPPFLAGS += -D_FILE_OFFSET_BITS=64 ifeq (SunOS,$(uname_S)) EV_CONFIG=config_sunos.h EIO_CONFIG=config_sunos.h -CPPFLAGS += -Isrc/ares/config_sunos -D__EXTENSIONS__ +CPPFLAGS += -Isrc/ares/config_sunos -D__EXTENSIONS__ -D_XOPEN_SOURCE=500 LINKFLAGS+=-lsocket -lnsl UV_OS_FILE=uv-sunos.c endif