tools: Fix compilation in MeeGo
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 26 Oct 2011 07:15:59 +0000 (10:15 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 26 Oct 2011 09:00:26 +0000 (11:00 +0200)
The _GNU_SOURCE needs to be defined so that O_CLOEXEC
symbols can be found in system header files.
The source does not compile without the patch in MeeGo 1.2

tools/alg-test.c
tools/tap-test.c
tools/wispr.c

index 48f0a56..a7404b7 100644 (file)
@@ -23,6 +23,7 @@
 #include <config.h>
 #endif
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <fcntl.h>
 #include <unistd.h>
index 314d6bc..28e5cd5 100644 (file)
@@ -23,6 +23,7 @@
 #include <config.h>
 #endif
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <errno.h>
 #include <fcntl.h>
index 1300e40..88f09c1 100644 (file)
@@ -23,6 +23,7 @@
 #include <config.h>
 #endif
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <fcntl.h>
 #include <unistd.h>