From a4e94ada6d6beda725bcaaf4a10382402cd3ef55 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 8 Jan 2006 11:03:47 +0000 Subject: fix building on 64bit hosts --- libc/sysdeps/linux/common/fstat.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libc/sysdeps/linux/common/fstat.c') diff --git a/libc/sysdeps/linux/common/fstat.c b/libc/sysdeps/linux/common/fstat.c index 979a0db1d..e8bed683e 100644 --- a/libc/sysdeps/linux/common/fstat.c +++ b/libc/sysdeps/linux/common/fstat.c @@ -7,6 +7,10 @@ * GNU Library General Public License (LGPL) version 2 or later. */ +/* need to hide the 64bit prototype or the weak_alias() + * will fail when __NR_fstat64 doesnt exist */ +#define __fstat64 __hide__fstat64 + #include "syscalls.h" #include #define _SYS_STAT_H @@ -14,6 +18,8 @@ #include #include "xstatconv.h" +#undef __fstat64 + #define __NR___syscall_fstat __NR_fstat #undef __fstat #undef fstat -- cgit v1.2.3