aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/x86/xstatver.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86/xstatver.h')
-rw-r--r--sysdeps/unix/sysv/linux/x86/xstatver.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/x86/xstatver.h b/sysdeps/unix/sysv/linux/x86/xstatver.h
new file mode 100644
index 0000000000..4447212894
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/x86/xstatver.h
@@ -0,0 +1,12 @@
+/* Versions of the 'struct stat' data structure used in compatibility xstat
+ functions. */
+#ifndef __x86_64__
+# define _STAT_VER_LINUX_OLD 1
+# define _STAT_VER_KERNEL 1
+# define _STAT_VER_SVR4 2
+# define _STAT_VER_LINUX 3
+#else
+# define _STAT_VER_KERNEL 0
+# define _STAT_VER_LINUX 1
+#endif
+#define _STAT_VER _STAT_VER_LINUX