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 ```
29 lines
749 B
Diff
29 lines
749 B
Diff
This is needed to build on armv6/7 musl.
|
|
--- a/mupen64plus-core/src/r4300/new_dynarec/new_dynarec.c
|
|
+++ b/mupen64plus-core/src/r4300/new_dynarec/new_dynarec.c
|
|
@@ -25,12 +25,8 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
-#if defined(__APPLE__)
|
|
#include <sys/types.h> // needed for u_int, u_char, etc
|
|
|
|
-#define MAP_ANONYMOUS MAP_ANON
|
|
-#endif
|
|
-
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
--- a/mupen64plus-core/src/r4300/new_dynarec/new_dynarec_64.c
|
|
+++ b/mupen64plus-core/src/r4300/new_dynarec/new_dynarec_64.c
|
|
@@ -24,10 +24,7 @@
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
|
|
-#if defined(__APPLE__)
|
|
#include <sys/types.h> // needed for u_int, u_char, etc
|
|
-#define MAP_ANONYMOUS MAP_ANON
|
|
-#endif
|
|
|
|
#include "new_dynarec.h"
|
|
#include "main/main.h"
|