summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/stat.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-14 00:17:05 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-14 00:17:05 +0000
commit2ed5fd770ac8219ec08409f45089ec5831eab7b0 (patch)
treeb1c74aa9a17776901c3901e3105c14f39686cf9b /libc/sysdeps/linux/common/stat.c
parentf38a679be6f228977dd0880fa14ca0996f733bbb (diff)
downloaduClibc-alpine-2ed5fd770ac8219ec08409f45089ec5831eab7b0.tar.bz2
uClibc-alpine-2ed5fd770ac8219ec08409f45089ec5831eab7b0.tar.xz
dont include bits/kernel_stat.h as xstatconv.h already does and use sys/stat.h rather than bits/stat.h
Diffstat (limited to 'libc/sysdeps/linux/common/stat.c')
-rw-r--r--libc/sysdeps/linux/common/stat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c
index 74d6e2f5f..7cc6131b3 100644
--- a/libc/sysdeps/linux/common/stat.c
+++ b/libc/sysdeps/linux/common/stat.c
@@ -9,14 +9,15 @@
/* need to hide the 64bit prototype or the weak_alias()
* will fail when __NR_stat64 doesnt exist */
+#define stat64 __hidestat64
#define __stat64 __hide__stat64
#include "syscalls.h"
#include <unistd.h>
-#define _SYS_STAT_H
-#include <bits/stat.h>
+#include <sys/stat.h>
#include "xstatconv.h"
+#undef stat64
#undef __stat64
#define __NR___syscall_stat __NR_stat