765e304c4b
```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 ```
16 lines
564 B
Diff
16 lines
564 B
Diff
--- a/Clients/dns-sd.c 2021-01-26 20:47:47 UTC
|
|
+++ b/Clients/dns-sd.c
|
|
@@ -58,11 +58,13 @@
|
|
//#define TEST_NEW_CLIENTSTUB 1
|
|
|
|
#include <ctype.h>
|
|
+#include <stdarg.h> // For va_list
|
|
#include <stdio.h> // For stdout, stderr
|
|
#include <stdlib.h> // For exit()
|
|
#include <string.h> // For strlen(), strcpy()
|
|
#include <errno.h> // For errno, EINTR
|
|
#include <time.h>
|
|
+#include <sys/param.h> // For MIN
|
|
#include <sys/types.h> // For u_char
|
|
#ifdef APPLE_OSX_mDNSResponder
|
|
#include <inttypes.h> // For PRId64
|