be5369a0cb
* fpc is kept at -Np0 ```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 ```
20 lines
685 B
Diff
20 lines
685 B
Diff
--- a/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_features_linux.c 2019-01-29 11:20:52.298793223 +0100
|
|
+++ b/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_features_linux.c 2019-01-29 11:21:48.250250850 +0100
|
|
@@ -14,7 +14,7 @@
|
|
#ifndef __GLIBC_PREREQ
|
|
#define __GLIBC_PREREQ(a, b) 0
|
|
#endif
|
|
-#if __GLIBC_PREREQ(2, 16)
|
|
+#if !__GLIBC__ || __GLIBC_PREREQ(2, 16)
|
|
#include <sys/auxv.h>
|
|
#else
|
|
#include <fcntl.h>
|
|
@@ -32,7 +32,7 @@
|
|
int architecture = 0;
|
|
unsigned long hwcap = 0;
|
|
const char* platform = NULL;
|
|
-#if __GLIBC_PREREQ(2, 16)
|
|
+#if !__GLIBC__ || __GLIBC_PREREQ(2, 16)
|
|
hwcap = getauxval(AT_HWCAP);
|
|
platform = (const char*)getauxval(AT_PLATFORM);
|
|
#else
|