summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2011-10-26 10:15:59 +0300
committerMarcel Holtmann <marcel@holtmann.org>2011-10-26 11:00:26 +0200
commit42208683c38f0bd6c364904990f5d21b6026e175 (patch)
tree09fd985b7d3458a62a13a8a5e8b9714c965809fb /tools
parent62e46276c3529ec4fb7cb8fb372ce7be9e3dc21a (diff)
downloadconnman-42208683c38f0bd6c364904990f5d21b6026e175.tar.gz
connman-42208683c38f0bd6c364904990f5d21b6026e175.tar.bz2
connman-42208683c38f0bd6c364904990f5d21b6026e175.zip
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 48f0a56f..a7404b74 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 314d6bce..28e5cd52 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 1300e40d..88f09c13 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>