4f75cf25fd
```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
461 B
Diff
16 lines
461 B
Diff
--- a/lib/trace-cmd/include/trace-cmd-local.h 2020-07-17 17:14:20.000000000 +0200
|
|
+++ b/lib/trace-cmd/include/trace-cmd-local.h 2020-07-18 16:31:32.060682767 +0200
|
|
@@ -18,8 +18,13 @@
|
|
|
|
#ifndef htonll
|
|
# if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
+#if defined(__GLIBC__)
|
|
#define htonll(x) __bswap_64(x)
|
|
#define ntohll(x) __bswap_64(x)
|
|
+#else
|
|
+#define htonll(x) __bswap64(x)
|
|
+#define ntohll(x) __bswap64(x)
|
|
+#endif
|
|
#else
|
|
#define htonll(x) (x)
|
|
#define ntohll(x) (x)
|