void-packages/srcpkgs/re/patches/bsdnet.diff

31 lines
824 B
Diff

--- src/net/posix/pif.c.orig 2016-12-03 15:21:22.000000000 +0100
+++ 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>
--- src/net/ifaddrs.c.orig 2016-12-03 15:24:22.000000000 +0100
+++ 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 */
--- src/tcp/tcp.c.orig 2016-12-03 15:30:06.000000000 +0100
+++ 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>