19 lines
472 B
Diff
19 lines
472 B
Diff
--- syscalls/x86/modify_ldt.c
|
|
+++ 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"
|