From 6d1095db1ec969cb3d1011089fd0cbdb6db70fe0 Mon Sep 17 00:00:00 2001 From: Arun Thomas Date: Tue, 26 Jul 2011 16:52:43 +0200 Subject: [PATCH] test: define NETBSD_SOURCE for gcc/clang --- test/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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