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 ```
20 lines
664 B
Diff
20 lines
664 B
Diff
--- a/librtas_src/librtas.h 2018-06-15 01:49:01.000000000 +0200
|
|
+++ b/librtas_src/librtas.h 2019-03-19 15:35:14.839592813 +0100
|
|
@@ -27,6 +27,7 @@
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <stdint.h>
|
|
+#include <endian.h> /* required for BE arches */
|
|
|
|
#define RTAS_KERNEL_INT -1001 /* No Kernel Interface to Firmware */
|
|
#define RTAS_KERNEL_IMP -1002 /* No Kernel Implementation of Function */
|
|
--- a/librtasevent_src/librtasevent.h 2018-06-15 01:49:01.000000000 +0200
|
|
+++ b/librtasevent_src/librtasevent.h 2019-03-19 15:37:53.055600976 +0100
|
|
@@ -49,6 +49,7 @@
|
|
|
|
#include <stdio.h>
|
|
#include <inttypes.h>
|
|
+#include <endian.h>
|
|
|
|
struct rtas_event;
|
|
|