861ac185a6
```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 ```
14 lines
637 B
Diff
14 lines
637 B
Diff
--- a/OgreMain/include/OgreString.h 2018-04-17 09:04:05.425658306 +0200
|
|
+++ b/OgreMain/include/OgreString.h 2018-04-17 09:14:39.457143961 +0200
|
|
@@ -76,6 +76,11 @@ namespace __gnu_cxx
|
|
# define strtol_l(ptr, end, base, l) strtol(ptr, end, base)
|
|
#endif
|
|
|
|
+#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX && !defined(__GLIBC__)
|
|
+# define strtoul_l(ptr, end, base, l) strtoul(ptr, end, base)
|
|
+# define strtol_l(ptr, end, base, l) strtol(ptr, end, base)
|
|
+#endif
|
|
+
|
|
// If compiling with make on macOS, these headers need to be included to get
|
|
// definitions of locale_t, strtod_l, etc...
|
|
// See: http://www.unix.com/man-page/osx/3/strtod_l/
|