From: Mathieu Desnoyers Date: Sun, 4 Mar 2012 20:26:09 +0000 (-0500) Subject: tests: define _GNU_SOURCE instead of __USE_GNU X-Git-Tag: v0.7.0~42 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=76ca5685bbc20ebbfdc50d07f1d717769668cb8e;p=userspace-rcu.git tests: define _GNU_SOURCE instead of __USE_GNU 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 --- diff --git a/tests/api.h b/tests/api.h index c5d716f..03c370b 100644 --- a/tests/api.h +++ b/tests/api.h @@ -1,7 +1,7 @@ - #ifndef _INCLUDE_API_H #define _INCLUDE_API_H +#define _GNU_SOURCE #include "../config.h" /* @@ -64,7 +64,6 @@ #include #include #include -#define __USE_GNU #include #include #include