From 42208683c38f0bd6c364904990f5d21b6026e175 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 26 Oct 2011 10:15:59 +0300 Subject: 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 --- tools/alg-test.c | 1 + tools/tap-test.c | 1 + tools/wispr.c | 1 + 3 files changed, 3 insertions(+) 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 #endif +#define _GNU_SOURCE #include #include #include 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 #endif +#define _GNU_SOURCE #include #include #include 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 #endif +#define _GNU_SOURCE #include #include #include -- cgit v1.2.3