From 367ac44ac1582c837e7a13031d9bfce0446bc415 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Sat, 18 Jun 2011 16:02:42 +0200 Subject: [PATCH] Remove private feature macros for Solaris from compiler flags --- Makefile | 2 +- async.c | 1 + test.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 271d11b..eb325e1 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ CC:=$(shell sh -c 'type $(CC) 2>/dev/null 1>/dev/null && echo $(CC) || echo gcc' uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') OPTIMIZATION?=-O3 ifeq ($(uname_S),SunOS) - CFLAGS?=$(OPTIMIZATION) -fPIC -Wall -W -D__EXTENSIONS__ -D_XPG6 $(ARCH) $(PROF) + CFLAGS?=$(OPTIMIZATION) -fPIC -Wall -W $(ARCH) $(PROF) CCLINK?=-ldl -lnsl -lsocket LDFLAGS?=-L. DYLIBSUFFIX=so diff --git a/async.c b/async.c index ed6c530..cbbfb6d 100644 --- a/async.c +++ b/async.c @@ -29,6 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#include "fmacros.h" #include #include #include diff --git a/test.c b/test.c index 3eef05d..19f9ad1 100644 --- a/test.c +++ b/test.c @@ -1,3 +1,4 @@ +#include "fmacros.h" #include #include #include