plugins: Fix compilation in MeeGo
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 26 Oct 2011 07:15:57 +0000 (10:15 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 26 Oct 2011 08:59:53 +0000 (10:59 +0200)
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
plugins/vpn.c

index 9b0d3f7..9be3841 100644 (file)
@@ -23,6 +23,7 @@
 #include <config.h>
 #endif
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
index b9b97c1..26e2b09 100644 (file)
@@ -23,6 +23,7 @@
 #include <config.h>
 #endif
 
+#define _GNU_SOURCE
 #include <string.h>
 #include <fcntl.h>
 #include <unistd.h>