about summary refs log tree commit diff
path: root/include/sys/stat.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-14 18:41:25 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-14 18:41:25 -0500
commit74eea628cf43355ba2b227f0bb3c31697d637761 (patch)
tree9fe300db7b7fa7f541bdfa41176d0f6333851e74 /include/sys/stat.h
parent80695b1d1e64a026c473a33965e680444e863e34 (diff)
downloadmusl-74eea628cf43355ba2b227f0bb3c31697d637761.tar.gz
musl-74eea628cf43355ba2b227f0bb3c31697d637761.tar.xz
musl-74eea628cf43355ba2b227f0bb3c31697d637761.zip
extensive header cleanup for standards conformance & correctness
thanks to Peter Mazinger (psm) for pointing many of these issues out
and submitting a patch on which this commit is loosely based
Diffstat (limited to 'include/sys/stat.h')
-rw-r--r--include/sys/stat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/stat.h b/include/sys/stat.h
index 36575b0e..627890f4 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -14,11 +14,16 @@ extern "C" {
 #define __NEED_time_t
 #define __NEED_blksize_t
 #define __NEED_blkcnt_t
+#define __NEED_struct_timespec
 
 #include <bits/alltypes.h>
 
 #include <bits/stat.h>
 
+#define st_atime st_atim.tv_sec
+#define st_mtime st_mtim.tv_sec
+#define st_ctime st_ctim.tv_sec
+
 #define S_IFMT  0170000
 
 #define S_IFDIR 0040000