4f75cf25fd
```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
476 B
Diff
18 lines
476 B
Diff
--- a/syscalls/x86/modify_ldt.c
|
|
+++ b/syscalls/x86/modify_ldt.c
|
|
@@ -5,8 +5,15 @@
|
|
* asmlinkage int sys_modify_ldt(int func, void __user *ptr, unsigned long bytecount)
|
|
*/
|
|
#include <stdlib.h>
|
|
+#include <stdint.h>
|
|
#include <sys/types.h>
|
|
#define __ASSEMBLY__ 1
|
|
+typedef int16_t __s16;
|
|
+typedef uint16_t __u16;
|
|
+typedef int32_t __s32;
|
|
+typedef uint32_t __u32;
|
|
+typedef int64_t __s64;
|
|
+typedef uint64_t __u64;
|
|
#include <asm/ldt.h>
|
|
#include "sanitise.h"
|
|
#include "shm.h"
|