From 9d335227b11499758dc06d97822ba2ebeeb0fd5c Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 15 Feb 2012 22:23:47 -0500 Subject: [PATCH] Add missing #define _GNU_SOURCE for sched_getcpu() Signed-off-by: Mathieu Desnoyers --- liblttng-ust-ctl/ustctl.c | 1 + liblttng-ust/ltt-ring-buffer-client-discard.c | 1 + liblttng-ust/ltt-ring-buffer-client-overwrite.c | 1 + liblttng-ust/ltt-ring-buffer-client.h | 1 - liblttng-ust/ltt-ring-buffer-metadata-client.c | 1 + liblttng-ust/ltt-ring-buffer-metadata-client.h | 1 - tests/ust-basic-tracing/ust-basic-tracing.c | 1 + tests/ust-multi-test/ust-multi-test.c | 1 + 8 files changed, 6 insertions(+), 2 deletions(-) diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c index 32fa2ebc..964a5586 100644 --- a/liblttng-ust-ctl/ustctl.c +++ b/liblttng-ust-ctl/ustctl.c @@ -17,6 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define _GNU_SOURCE #include #include #include diff --git a/liblttng-ust/ltt-ring-buffer-client-discard.c b/liblttng-ust/ltt-ring-buffer-client-discard.c index d4d0231f..a551ef9a 100644 --- a/liblttng-ust/ltt-ring-buffer-client-discard.c +++ b/liblttng-ust/ltt-ring-buffer-client-discard.c @@ -8,6 +8,7 @@ * Dual LGPL v2.1/GPL v2 license. */ +#define _GNU_SOURCE #include "ltt-tracer.h" #define RING_BUFFER_MODE_TEMPLATE RING_BUFFER_DISCARD diff --git a/liblttng-ust/ltt-ring-buffer-client-overwrite.c b/liblttng-ust/ltt-ring-buffer-client-overwrite.c index fa04c18b..27693a26 100644 --- a/liblttng-ust/ltt-ring-buffer-client-overwrite.c +++ b/liblttng-ust/ltt-ring-buffer-client-overwrite.c @@ -8,6 +8,7 @@ * Dual LGPL v2.1/GPL v2 license. */ +#define _GNU_SOURCE #include "ltt-tracer.h" #define RING_BUFFER_MODE_TEMPLATE RING_BUFFER_OVERWRITE diff --git a/liblttng-ust/ltt-ring-buffer-client.h b/liblttng-ust/ltt-ring-buffer-client.h index 7e853992..ce9d263c 100644 --- a/liblttng-ust/ltt-ring-buffer-client.h +++ b/liblttng-ust/ltt-ring-buffer-client.h @@ -8,7 +8,6 @@ * Dual LGPL v2.1/GPL v2 license. */ -#define _GNU_SOURCE #include #include #include "lttng/bitfield.h" diff --git a/liblttng-ust/ltt-ring-buffer-metadata-client.c b/liblttng-ust/ltt-ring-buffer-metadata-client.c index 9609bb15..9cf4c579 100644 --- a/liblttng-ust/ltt-ring-buffer-metadata-client.c +++ b/liblttng-ust/ltt-ring-buffer-metadata-client.c @@ -8,6 +8,7 @@ * Dual LGPL v2.1/GPL v2 license. */ +#define _GNU_SOURCE #include "ltt-tracer.h" #define RING_BUFFER_MODE_TEMPLATE RING_BUFFER_DISCARD diff --git a/liblttng-ust/ltt-ring-buffer-metadata-client.h b/liblttng-ust/ltt-ring-buffer-metadata-client.h index 3fa785a2..7e79b116 100644 --- a/liblttng-ust/ltt-ring-buffer-metadata-client.h +++ b/liblttng-ust/ltt-ring-buffer-metadata-client.h @@ -8,7 +8,6 @@ * Dual LGPL v2.1/GPL v2 license. */ -#define _GNU_SOURCE #include #include #include "lttng/bitfield.h" diff --git a/tests/ust-basic-tracing/ust-basic-tracing.c b/tests/ust-basic-tracing/ust-basic-tracing.c index da2852f8..91a910a6 100644 --- a/tests/ust-basic-tracing/ust-basic-tracing.c +++ b/tests/ust-basic-tracing/ust-basic-tracing.c @@ -19,6 +19,7 @@ */ #define _LARGEFILE64_SOURCE +#define _GNU_SOURCE #include #include #include diff --git a/tests/ust-multi-test/ust-multi-test.c b/tests/ust-multi-test/ust-multi-test.c index b3c97ea1..07cd815c 100644 --- a/tests/ust-multi-test/ust-multi-test.c +++ b/tests/ust-multi-test/ust-multi-test.c @@ -19,6 +19,7 @@ */ #define _LARGEFILE64_SOURCE +#define _GNU_SOURCE #include #include #include -- 2.34.1