summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/statfix.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/statfix.h')
-rw-r--r--libc/sysdeps/linux/common/statfix.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/statfix.h b/libc/sysdeps/linux/common/statfix.h
index 21a776c92..df85d84d4 100644
--- a/libc/sysdeps/linux/common/statfix.h
+++ b/libc/sysdeps/linux/common/statfix.h
@@ -3,9 +3,11 @@
/* Pull in whatever this particular arch's kernel thinks the kernel version of
* struct stat should look like. It turn out that each arch has a different
- * opinion on the subject... */
+ * opinion on the subject, and different kernel revs use different names... */
#define stat kernel_stat
+#define new_stat kernel_stat
#include <asm/stat.h>
+#undef new_stat
#undef stat
/* Now pull in libc's version of stat */