]> granicus.if.org Git - strace/commitdiff
2003-01-08 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Thu, 9 Jan 2003 06:53:22 +0000 (06:53 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 9 Jan 2003 06:53:22 +0000 (06:53 +0000)
* file.c [LINUX]: #undef st_[amc]time in case they are macros.

file.c

diff --git a/file.c b/file.c
index 67e3a5ddd5024d0443176fd7bdd1ddaf34451a94..a8aecf5d8813ef76493cf074a953987458e8dc43 100644 (file)
--- a/file.c
+++ b/file.c
@@ -116,6 +116,10 @@ struct stat {
 #  include <sys/stat.h>
 #  undef stat
 #  undef stat64
+   /* These might be macros. */
+#  undef st_atime
+#  undef st_mtime
+#  undef st_ctime
 #  ifdef HPPA
 #    define stat64 hpux_stat64
 #  endif