2fd8d4df94
```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 ```
18 lines
531 B
Diff
18 lines
531 B
Diff
--- a/src/core/zip/zip.h
|
|
+++ b/src/core/zip/zip.h
|
|
@@ -19,15 +19,6 @@
|
|
extern "C" {
|
|
#endif
|
|
|
|
-#if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T_DEFINED_) && \
|
|
- !defined(_SSIZE_T) && !defined(_SSIZE_T_) && \
|
|
- !defined(__ssize_t_defined) && !defined(ssize_t) && \
|
|
- !defined(_SSIZE_T_DECLARED) && !defined(HAVE_SSIZE_T)
|
|
-#define _SSIZE_T
|
|
-#define __ssize_t_defined
|
|
-typedef long ssize_t; /* byte count or error */
|
|
-#endif
|
|
-
|
|
#ifndef MAX_PATH
|
|
#define MAX_PATH 32767 /* # chars in a path name including NULL */
|
|
#endif
|