diff options
-rw-r--r-- | src/inet.c | 7 | ||||
-rw-r--r-- | src/resolver.c | 1 | ||||
-rw-r--r-- | src/rfkill.c | 1 | ||||
-rw-r--r-- | src/timezone.c | 1 |
4 files changed, 4 insertions, 6 deletions
@@ -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); diff --git a/src/resolver.c b/src/resolver.c index 4cc87ddc..68fa4f7b 100644 --- a/src/resolver.c +++ b/src/resolver.c @@ -23,6 +23,7 @@ #include <config.h> #endif +#define _GNU_SOURCE #include <stdio.h> #include <errno.h> #include <fcntl.h> diff --git a/src/rfkill.c b/src/rfkill.c index 6ad82797..3fdca2fb 100644 --- a/src/rfkill.c +++ b/src/rfkill.c @@ -23,6 +23,7 @@ #include <config.h> #endif +#define _GNU_SOURCE #include <stdio.h> #include <errno.h> #include <fcntl.h> diff --git a/src/timezone.c b/src/timezone.c index 5b17c005..d82502b4 100644 --- a/src/timezone.c +++ b/src/timezone.c @@ -23,6 +23,7 @@ #include <config.h> #endif +#define _GNU_SOURCE #include <errno.h> #include <stdio.h> #include <fcntl.h> |