summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2011-10-26 07:15:59 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2011-10-26 09:00:26 (GMT)
commit42208683c38f0bd6c364904990f5d21b6026e175 (patch)
tree09fd985b7d3458a62a13a8a5e8b9714c965809fb /tools
parent62e46276c3529ec4fb7cb8fb372ce7be9e3dc21a (diff)
downloadconnman-42208683c38f0bd6c364904990f5d21b6026e175.zip
connman-42208683c38f0bd6c364904990f5d21b6026e175.tar.gz
connman-42208683c38f0bd6c364904990f5d21b6026e175.tar.bz2
tools: Fix compilation in MeeGo
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
Diffstat (limited to 'tools')
-rw-r--r--tools/alg-test.c1
-rw-r--r--tools/tap-test.c1
-rw-r--r--tools/wispr.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/tools/alg-test.c b/tools/alg-test.c
index 48f0a56..a7404b7 100644
--- a/tools/alg-test.c
+++ b/tools/alg-test.c
@@ -23,6 +23,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
diff --git a/tools/tap-test.c b/tools/tap-test.c
index 314d6bc..28e5cd5 100644
--- a/tools/tap-test.c
+++ b/tools/tap-test.c
@@ -23,6 +23,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/tools/wispr.c b/tools/wispr.c
index 1300e40..88f09c1 100644
--- a/tools/wispr.c
+++ b/tools/wispr.c
@@ -23,6 +23,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>