summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2011-10-26 07:15:58 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2011-10-26 09:00:12 (GMT)
commit62e46276c3529ec4fb7cb8fb372ce7be9e3dc21a (patch)
tree7266ee3c986bd6b9ba05cbbc5e6714937a2e2d7e /src/inet.c
parent61f8be7c7da5a4caa26742d9bb1b50aef40fc79e (diff)
downloadconnman-62e46276c3529ec4fb7cb8fb372ce7be9e3dc21a.zip
connman-62e46276c3529ec4fb7cb8fb372ce7be9e3dc21a.tar.gz
connman-62e46276c3529ec4fb7cb8fb372ce7be9e3dc21a.tar.bz2
core: 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
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/inet.c b/src/inet.c
index d0a3edc..595f52d 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
@@ -1426,12 +1427,6 @@ static const struct in6_addr in6addr_all_nodes_mc = IN6ADDR_ALL_NODES_MC_INIT;
static const struct in6_addr in6addr_all_routers_mc =
IN6ADDR_ALL_ROUTERS_MC_INIT;
-/* from netinet/in.h */
-struct in6_pktinfo {
- struct in6_addr ipi6_addr; /* src/dst IPv6 address */
- unsigned int ipi6_ifindex; /* send/recv interface index */
-};
-
static void rs_cleanup(struct rs_cb_data *data)
{
g_io_channel_shutdown(data->channel, TRUE, NULL);