aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-02-18 23:00:51 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-02-18 23:00:51 +0000
commit01ffc75bc95e2a7ea7c00dc3d7637b20f02efdef (patch)
tree85e33bd076635dcfcf41ca2fd4494de333694c76 /linux-user
parent31e31b8a248ffa216223dad49f75efbdfca5df23 (diff)
avoid pt_regs clash
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c8
-rw-r--r--linux-user/qemu.h4
2 files changed, 5 insertions, 7 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index e3950835e3..09e22fef29 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -20,8 +20,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
-#include <elf.h>
-#include <endian.h>
#include <errno.h>
#include "gemu.h"
@@ -210,7 +208,7 @@ void usage(void)
int main(int argc, char **argv)
{
const char *filename;
- struct pt_regs regs1, *regs = &regs1;
+ struct target_pt_regs regs1, *regs = &regs1;
struct image_info info1, *info = &info1;
Interp_ENV *env;
@@ -220,12 +218,12 @@ int main(int argc, char **argv)
filename = argv[1];
/* Zero out regs */
- memset(regs, 0, sizeof(struct pt_regs));
+ memset(regs, 0, sizeof(struct target_pt_regs));
/* Zero out image_info */
memset(info, 0, sizeof(struct image_info));
- if(elf_exec(filename, argv+1, __environ, regs, info) != 0) {
+ if(elf_exec(filename, argv+1, environ, regs, info) != 0) {
printf("Error loading %s\n", filename);
exit(1);
}
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index fa40d4d845..0b9de6b3fe 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -3,7 +3,7 @@
#include "thunk.h"
-struct pt_regs {
+struct target_pt_regs {
long ebx;
long ecx;
long edx;
@@ -44,7 +44,7 @@ struct image_info {
};
int elf_exec(const char * filename, char ** argv, char ** envp,
- struct pt_regs * regs, struct image_info *infop);
+ struct target_pt_regs * regs, struct image_info *infop);
void target_set_brk(char *new_brk);
void syscall_init(void);