```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 ```
15 lines
632 B
Diff
15 lines
632 B
Diff
This time it's the other way round: both GNU libc and musl libc
|
|
have <endian.h> so use defined(__linux__) to use this header
|
|
file for setting the target's endianness.
|
|
|
|
--- a/src/osgPlugins/osc/osc/OscHostEndianness.h 2015-07-23 13:14:00.000000000 +0200
|
|
+++ b/src/osgPlugins/osc/osc/OscHostEndianness.h 2015-10-31 06:39:02.503234496 +0100
|
|
@@ -51,7 +51,7 @@
|
|
|
|
#else
|
|
|
|
- #if defined(__GLIBC__) || defined(__ANDROID__) || defined(__CYGWIN__)
|
|
+ #if defined(__linux__) || defined(__ANDROID__) || defined(__CYGWIN__)
|
|
#include <endian.h>
|
|
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
|
|
#ifndef __LITTLE_ENDIAN__
|