986c0a7d5e
```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 ```
32 lines
702 B
Diff
32 lines
702 B
Diff
--- a/iouyap.c
|
|
+++ b/iouyap.c
|
|
@@ -35,7 +35,9 @@
|
|
#include <linux/if_tun.h>
|
|
#include <arpa/inet.h>
|
|
#include <netpacket/packet.h>
|
|
+#if HAVE_NETINET_IF_ETHER_H && !HAVE_LINUX_IF_TUN_H
|
|
#include <net/ethernet.h>
|
|
+#endif
|
|
#include <netdb.h>
|
|
#include <net/if_arp.h>
|
|
#include <linux/rtnetlink.h>
|
|
--- a/iouyap.h
|
|
+++ b/iouyap.h
|
|
@@ -24,6 +24,7 @@
|
|
#include <netinet/in.h>
|
|
#include <errno.h>
|
|
#include <sys/un.h>
|
|
+#include <sys/types.h>
|
|
|
|
#define NAME "iouyap"
|
|
#define VERSION "0.97.0"
|
|
--- a/netmap.c
|
|
+++ b/netmap.c
|
|
@@ -28,6 +28,7 @@
|
|
#include <string.h>
|
|
#include <netdb.h>
|
|
#include <sys/socket.h>
|
|
+#include <sys/types.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
|