4b97cd2fb4
```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 ```
13 lines
721 B
Diff
13 lines
721 B
Diff
Index: src/modules/graphic/osggraph/Utils/OsgAtomic.h
|
|
===================================================================
|
|
--- a/src/modules/graphic/osggraph/Utils/OsgAtomic.h (revision 6789)
|
|
+++ b/src/modules/graphic/osggraph/Utils/OsgAtomic.h (working copy)
|
|
@@ -20,7 +20,7 @@
|
|
#ifndef OsgAtomic_H
|
|
#define OsgAtomic_H
|
|
|
|
-#if defined(__GNUC__) && ((4 < __GNUC__)||(4 == __GNUC__ && 1 <= __GNUC_MINOR__)) && defined(__x86_64__)
|
|
+#if defined(__GNUC__) && ((4 < __GNUC__)||(4 == __GNUC__ && 1 <= __GNUC_MINOR__)) && (defined(__x86_64__) || defined(__powerpc64__))
|
|
// No need to include something. Is a Compiler API ...
|
|
# define SDATOMIC_USE_GCC4_BUILTINS
|
|
#elif defined(__GNUC__) && defined(__i386__)
|