summaryrefslogtreecommitdiff
path: root/plugins/vpn.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2011-10-26 10:15:57 +0300
committerMarcel Holtmann <marcel@holtmann.org>2011-10-26 10:59:53 +0200
commit61f8be7c7da5a4caa26742d9bb1b50aef40fc79e (patch)
tree60dd572a97f2da1040a94c34218d06ab9b2e9f5f /plugins/vpn.c
parentbb1b20cbef2fbb82ee272af3b475dc4cff9c08aa (diff)
downloadconnman-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/vpn.c')
-rw-r--r--plugins/vpn.c1
1 files changed, 1 insertions, 0 deletions
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>