31 lines
821 B
Diff
31 lines
821 B
Diff
--- a/src/net/posix/pif.c 2016-12-03 15:21:22.000000000 +0100
|
|
+++ b/src/net/posix/pif.c 2016-12-03 15:21:39.000000000 +0100
|
|
@@ -3,6 +3,7 @@
|
|
*
|
|
* Copyright (C) 2010 Creytiv.com
|
|
*/
|
|
+#define _GNU_SOURCE
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include <sys/ioctl.h>
|
|
--- a/src/net/ifaddrs.c 2016-12-03 15:24:22.000000000 +0100
|
|
+++ b/src/net/ifaddrs.c 2016-12-03 15:24:39.000000000 +0100
|
|
@@ -3,6 +3,7 @@
|
|
*
|
|
* Copyright (C) 2010 Creytiv.com
|
|
*/
|
|
+#define _GNU_SOURCE
|
|
#include <unistd.h>
|
|
#include <sys/socket.h>
|
|
#define __USE_MISC 1 /**< Use MISC code */
|
|
--- a/src/tcp/tcp.c 2016-12-03 15:30:06.000000000 +0100
|
|
+++ b/src/tcp/tcp.c 2016-12-03 15:29:46.000000000 +0100
|
|
@@ -3,6 +3,7 @@
|
|
*
|
|
* Copyright (C) 2010 Creytiv.com
|
|
*/
|
|
+#define _GNU_SOURCE
|
|
#include <stdlib.h>
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|