From 61f8be7c7da5a4caa26742d9bb1b50aef40fc79e Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 26 Oct 2011 10:15:57 +0300 Subject: [PATCH] plugins: Fix compilation in MeeGo The _GNU_SOURCE needs to be defined so that O_CLOEXEC symbol can be found in system header files. The source does not compile without the patch in MeeGo 1.2 --- plugins/tist.c | 1 + plugins/vpn.c | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/tist.c b/plugins/tist.c index 9b0d3f7..9be3841 100644 --- a/plugins/tist.c +++ b/plugins/tist.c @@ -23,6 +23,7 @@ #include #endif +#define _GNU_SOURCE #include #include #include diff --git a/plugins/vpn.c b/plugins/vpn.c index b9b97c1..26e2b09 100644 --- a/plugins/vpn.c +++ b/plugins/vpn.c @@ -23,6 +23,7 @@ #include #endif +#define _GNU_SOURCE #include #include #include -- 2.7.4