From 97b3ceebfa6f572379b3c70fccd22efbc1fb59bc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 29 Aug 2005 22:45:52 +0000 Subject: anemo writes in Bug 9: use ElfW(auxv_t) instead of Elf32_auxv_t --- libc/misc/internals/__uClibc_main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libc/misc') diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index 21864ba4f..6f74e39e8 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -171,7 +172,7 @@ __uClibc_main(int (*main)(int, char **, char **), int argc, { #ifdef __ARCH_HAS_MMU__ unsigned long *aux_dat; - Elf32_auxv_t auxvt[AT_EGID + 1]; + ElfW(auxv_t) auxvt[AT_EGID + 1]; #endif __libc_stack_end = stack_end; /* We need to initialize uClibc. If we are dynamically linked this @@ -199,9 +200,9 @@ __uClibc_main(int (*main)(int, char **, char **), int argc, } aux_dat++; while (*aux_dat) { - Elf32_auxv_t *auxv_entry = (Elf32_auxv_t *) aux_dat; + ElfW(auxv_t) *auxv_entry = (ElfW(auxv_t) *) aux_dat; if (auxv_entry->a_type <= AT_EGID) { - memcpy(&(auxvt[auxv_entry->a_type]), auxv_entry, sizeof(Elf32_auxv_t)); + memcpy(&(auxvt[auxv_entry->a_type]), auxv_entry, sizeof(ElfW(auxv_t))); } aux_dat += 2; } -- cgit v1.2.3