76acfa2dd2
```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 ```
22 lines
386 B
Diff
22 lines
386 B
Diff
--- a/src/remote.c
|
|
+++ b/src/remote.c
|
|
@@ -34,6 +34,8 @@
|
|
#include <sys/ioctl.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
+#include <netinet/tcp.h>
|
|
+#include <sys/types.h>
|
|
#include <arpa/inet.h>
|
|
|
|
#include <net/if.h>
|
|
|
|
--- a/src/hv.c
|
|
+++ b/src/hv.c
|
|
@@ -42,7 +42,6 @@
|
|
#include <fcntl.h>
|
|
|
|
#include <libgen.h>
|
|
-#include <getopt.h>
|
|
#include <pthread.h>
|
|
#include <termios.h>
|
|
|