Selaa lähdekoodia

fix building on 64bit hosts

Mike Frysinger 18 vuotta sitten
vanhempi
commit
43da001e78

+ 1 - 0
libc/sysdeps/linux/common/fstat.c

@@ -37,6 +37,7 @@ int fstat(int fd, struct stat *buf)
 libc_hidden_def(fstat)
 
 #if ! defined __NR_fstat64 && defined __UCLIBC_HAS_LFS__
+extern __typeof(fstat) fstat64;
 libc_hidden_proto(fstat64)
 strong_alias(fstat,fstat64)
 libc_hidden_def(fstat64)

+ 1 - 0
libc/sysdeps/linux/common/lstat.c

@@ -38,6 +38,7 @@ int lstat(const char *file_name, struct stat *buf)
 libc_hidden_def(lstat)
 
 #if ! defined __NR_lstat64 && defined __UCLIBC_HAS_LFS__
+extern __typeof(lstat) lstat64;
 libc_hidden_proto(lstat64)
 strong_alias(lstat,lstat64)
 libc_hidden_def(lstat64)

+ 1 - 0
libc/sysdeps/linux/common/stat.c

@@ -39,6 +39,7 @@ int stat(const char *file_name, struct stat *buf)
 libc_hidden_def(stat)
 
 #if ! defined __NR_stat64 && defined __UCLIBC_HAS_LFS__
+extern __typeof(stat) stat64;
 libc_hidden_proto(stat64)
 strong_alias(stat,stat64)
 libc_hidden_def(stat64)