diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2011-10-26 10:15:57 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-10-26 10:59:53 +0200 |
commit | 61f8be7c7da5a4caa26742d9bb1b50aef40fc79e (patch) | |
tree | 60dd572a97f2da1040a94c34218d06ab9b2e9f5f /plugins | |
parent | bb1b20cbef2fbb82ee272af3b475dc4cff9c08aa (diff) | |
download | connman-61f8be7c7da5a4caa26742d9bb1b50aef40fc79e.tar.gz connman-61f8be7c7da5a4caa26742d9bb1b50aef40fc79e.tar.bz2 connman-61f8be7c7da5a4caa26742d9bb1b50aef40fc79e.zip |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/tist.c | 1 | ||||
-rw-r--r-- | plugins/vpn.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/tist.c b/plugins/tist.c index 9b0d3f7a..9be38412 100644 --- a/plugins/tist.c +++ b/plugins/tist.c @@ -23,6 +23,7 @@ #include <config.h> #endif +#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <errno.h> diff --git a/plugins/vpn.c b/plugins/vpn.c index b9b97c1b..26e2b09d 100644 --- a/plugins/vpn.c +++ b/plugins/vpn.c @@ -23,6 +23,7 @@ #include <config.h> #endif +#define _GNU_SOURCE #include <string.h> #include <fcntl.h> #include <unistd.h> |