From ef2e41138a4c23d6cb02710d091517d4ef33a110 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 30 May 2002 08:51:13 +0000 Subject: Make these properly cope with 64bit systems -Erik --- libc/sysdeps/linux/common/statfix.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'libc/sysdeps/linux/common/statfix.h') diff --git a/libc/sysdeps/linux/common/statfix.h b/libc/sysdeps/linux/common/statfix.h index 3978c6473..3d18dd408 100644 --- a/libc/sysdeps/linux/common/statfix.h +++ b/libc/sysdeps/linux/common/statfix.h @@ -1,26 +1,28 @@ #ifndef STATFIX_H #define STATFIX_H +#include +#undef __OPTIMIZE__ #include /* Pull in whatever this particular arch's kernel thinks the kernel version of - * struct stat should look like. It turns out that each arch has a different - * opinion on the subject, and different kernel revs use different names... */ + * * struct stat should look like. It turns out that each arch has a different + * * opinion on the subject, and different kernel revs use different names... */ #define stat kernel_stat #define new_stat kernel_stat -#define stat64 kernel_stat64 -#include -#undef stat64 +#include #undef new_stat #undef stat /* Now pull in libc's version of stat */ #define stat libc_stat -#include +#define stat64 libc_stat64 +#define _SYS_STAT_H +#include +#undef stat64 #undef stat extern void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat); extern int __fxstat(int version, int fd, struct libc_stat * statbuf); #endif - -- cgit v1.2.3