blob: cc10662b3d08f337c81636bf56d35b3650fb8bbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff -Naurp sparc32-1.1.orig/sparc32.c sparc32-1.1/sparc32.c
--- sparc32-1.1.orig/sparc32.c 1999-09-24 14:16:41.000000000 -0400
+++ sparc32-1.1/sparc32.c 2004-05-05 03:38:37.039139000 -0400
@@ -1,10 +1,10 @@
/* (C) 1998,1999 Jakub Jelinek under terms of GPL */
-#include <linux/personality.h>
-#include <linux/unistd.h>
+
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/utsname.h>
+#include <sys/personality.h>
#ifndef PER_LINUX32
#define PER_LINUX32 8
@@ -13,8 +13,6 @@
#define PER_LINUX_32BIT 0x0800000
#endif
-_syscall1(int, personality, long, pers);
-
int main(int argc, char **argv)
{
char *p = strrchr(argv[0], '/');
|