]> Zhao Yanbai Git Server - minix.git/commitdiff
test: define NETBSD_SOURCE for gcc/clang
authorArun Thomas <arun@minix3.org>
Tue, 26 Jul 2011 14:52:43 +0000 (16:52 +0200)
committerArun Thomas <arun@minix3.org>
Tue, 26 Jul 2011 14:52:43 +0000 (16:52 +0200)
test/Makefile

index 0c7b3a3879b6276e38324bab827e8c9b53dd2fae..546bb9c095e51c14e76013e266e4e52a8e044bd6 100644 (file)
@@ -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