Add missing #define _GNU_SOURCE for sched_getcpu()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Feb 2012 03:23:47 +0000 (22:23 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Feb 2012 03:23:47 +0000 (22:23 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-ctl/ustctl.c
liblttng-ust/ltt-ring-buffer-client-discard.c
liblttng-ust/ltt-ring-buffer-client-overwrite.c
liblttng-ust/ltt-ring-buffer-client.h
liblttng-ust/ltt-ring-buffer-metadata-client.c
liblttng-ust/ltt-ring-buffer-metadata-client.h
tests/ust-basic-tracing/ust-basic-tracing.c
tests/ust-multi-test/ust-multi-test.c

index 32fa2ebc33e92e054a7591435fa9aadffef47009..964a5586677a3dc4c68d9046a8fa9a51bac1b39c 100644 (file)
@@ -17,6 +17,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 
+#define _GNU_SOURCE
 #include <string.h>
 #include <lttng/ust-ctl.h>
 #include <lttng/ust-abi.h>
index d4d0231f1cc41e2634aca41be4c71eea567fd3d0..a551ef9a9d3ff9ed2806fb0f7f37cca1d4bc3d72 100644 (file)
@@ -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
index fa04c18bee77aec1a7f7ab49efda5a3bdb8ff220..27693a26597c0668ae9c4b46a61c6c69edd5f15d 100644 (file)
@@ -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
index 7e853992f6c7d8accbf02450a856ba17f6de2df8..ce9d263ce6c7be248c534564973de1ce0ce1a5f7 100644 (file)
@@ -8,7 +8,6 @@
  * Dual LGPL v2.1/GPL v2 license.
  */
 
-#define _GNU_SOURCE
 #include <stdint.h>
 #include <lttng/ust-events.h>
 #include "lttng/bitfield.h"
index 9609bb15231d40902ce5020b0d5f03d317e8a96a..9cf4c57966b3b0d92a98ca1f01cf3914c5554502 100644 (file)
@@ -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
index 3fa785a2265e7c2381931ba0e938c2f9f402c4ba..7e79b116fa613a672be0efaeb0a2c1987536c762 100644 (file)
@@ -8,7 +8,6 @@
  * Dual LGPL v2.1/GPL v2 license.
  */
 
-#define _GNU_SOURCE
 #include <stdint.h>
 #include <lttng/ust-events.h>
 #include "lttng/bitfield.h"
index da2852f893b41aaf47879bf0397a9693cc5e21e8..91a910a689b9d1841ed73d0d7c7860af905f5e60 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #define _LARGEFILE64_SOURCE
+#define _GNU_SOURCE
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
index b3c97ea10f0397ebdfbf4a99f6dfea85a41358bb..07cd815c486206a3b7ddf5bcbc1e9f070790fd1b 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #define _LARGEFILE64_SOURCE
+#define _GNU_SOURCE
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
This page took 0.028418 seconds and 4 git commands to generate.