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 ```
11 lines
357 B
Diff
11 lines
357 B
Diff
--- a/src/OpenThreads/pthreads/PThread.cpp 2015-04-07 20:01:12.000000000 +0200
|
|
+++ b/src/OpenThreads/pthreads/PThread.cpp 2015-10-31 06:24:45.189319272 +0100
|
|
@@ -27,7 +27,7 @@
|
|
#include <string.h>
|
|
#include <sys/time.h>
|
|
#include <sys/resource.h>
|
|
-#if !defined ANDROID
|
|
+#if defined __GLIBC__ && !defined ANDROID
|
|
#include <sys/unistd.h>
|
|
#endif
|
|
#endif
|