From: Arun Thomas Date: Tue, 26 Jul 2011 14:52:43 +0000 (+0200) Subject: test: define NETBSD_SOURCE for gcc/clang X-Git-Tag: v3.2.0~408 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/mdoc.3.txt?a=commitdiff_plain;h=6d1095db1ec969cb3d1011089fd0cbdb6db70fe0;p=minix.git test: define NETBSD_SOURCE for gcc/clang --- diff --git a/test/Makefile b/test/Makefile index 0c7b3a387..546bb9c09 100644 --- a/test/Makefile +++ b/test/Makefile @@ -2,6 +2,9 @@ GCC?=gcc CFLAGS= -O0 -D_MINIX -D_POSIX_SOURCE +.if ${COMPILER_TYPE} == "gnu" +CFLAGS+= -D_NETBSD_SOURCE +.endif CFLAGS-GCC= $(CFLAGS) -Wall -D_NETBSD_SOURCE CFLAGS-GCCFPU= $(CFLAGS) -Wall -mhard-float CFLAGS-GCCFPU= $(CFLAGS-GCC) -W -mhard-float