a03d116397
```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 ```
18 lines
548 B
Diff
18 lines
548 B
Diff
--- a/libexfat/platform.h 2015-08-17 23:32:56.701648786 +0200
|
|
+++ b/libexfat/platform.h 2015-08-17 23:33:04.219648224 +0200
|
|
@@ -57,7 +57,14 @@
|
|
#define EXFAT_BIG_ENDIAN _BIG_ENDIAN
|
|
|
|
#else
|
|
-#error Unknown platform
|
|
+#include <endian.h>
|
|
+#include <byteswap.h>
|
|
+#define exfat_bswap16(x) bswap_16(x)
|
|
+#define exfat_bswap32(x) bswap_32(x)
|
|
+#define exfat_bswap64(x) bswap_64(x)
|
|
+#define EXFAT_BYTE_ORDER __BYTE_ORDER
|
|
+#define EXFAT_LITTLE_ENDIAN __LITTLE_ENDIAN
|
|
+#define EXFAT_BIG_ENDIAN __BIG_ENDIAN
|
|
#endif
|
|
|
|
#endif /* ifndef PLATFORM_H_INCLUDED */
|