summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/alpha/bits/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/alpha/bits/stat.h')
-rw-r--r--libc/sysdeps/linux/alpha/bits/stat.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/alpha/bits/stat.h b/libc/sysdeps/linux/alpha/bits/stat.h
index a9adf6b64..148c6ff70 100644
--- a/libc/sysdeps/linux/alpha/bits/stat.h
+++ b/libc/sysdeps/linux/alpha/bits/stat.h
@@ -41,9 +41,27 @@
Use neat tidy anonymous unions and structures when possible. */
-#define __ST_TIME(X) \
+#if 0 /*def __USE_MISC*/
+# if __GNUC_PREREQ(3,3)
+# define __ST_TIME(X) \
+ __extension__ union { \
+ struct timespec st_##X##tim; \
+ struct { \
+ __time_t st_##X##time; \
+ unsigned long st_##X##timensec; \
+ }; \
+ }
+# else
+# define __ST_TIME(X) struct timespec st_##X##tim
+# define st_atime st_atim.tv_sec
+# define st_mtime st_mtim.tv_sec
+# define st_ctime st_ctim.tv_sec
+# endif
+#else
+# define __ST_TIME(X) \
__time_t st_##X##time; \
unsigned long st_##X##timensec
+#endif
struct stat