103ab731ab
* runit is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
30 lines
821 B
Diff
30 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>
|