tests: define _GNU_SOURCE instead of __USE_GNU
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 4 Mar 2012 20:26:09 +0000 (15:26 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 4 Mar 2012 20:26:09 +0000 (15:26 -0500)
Fixes the following warning:

In file included from urcutorture.c:9:0:
api.h:67:0: warning: "__USE_GNU" redefined [enabled by default]
/usr/include/features.h:304:0: note: this is the location of the previous definition

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/api.h

index c5d716f65f47a861988cc864182f44994f46d4f1..03c370b12d40b94519a33adfc8b55f2f214c1ac3 100644 (file)
@@ -1,7 +1,7 @@
-
 #ifndef _INCLUDE_API_H
 #define _INCLUDE_API_H
 
+#define _GNU_SOURCE
 #include "../config.h"
 
 /*
@@ -64,7 +64,6 @@
 #include <errno.h>
 #include <limits.h>
 #include <sys/types.h>
-#define __USE_GNU
 #include <pthread.h>
 #include <sched.h>
 #include <sys/param.h>
This page took 0.025713 seconds and 4 git commands to generate.