Index: sim/ppc/emul_unix.c |
diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c |
index 36738c4cffc29b3bbeba1764a6f1a82ebc362afe..e66d23f01147b2c8cfdc8634f00b131303ad779c 100644 |
--- a/sim/ppc/emul_unix.c |
+++ b/sim/ppc/emul_unix.c |
@@ -1034,6 +1034,11 @@ typedef unsigned32 solaris_nlink_t; |
#ifdef HAVE_SYS_STAT_H |
#define SOLARIS_ST_FSTYPSZ 16 /* array size for file system type name */ |
+/* AIX 7.1 defines st_pad[123] to st_[amc]tim.tv_pad, respectively */ |
+#undef st_pad1 |
+#undef st_pad2 |
+#undef st_pad3 |
+ |
struct solaris_stat { |
solaris_dev_t st_dev; |
signed32 st_pad1[3]; /* reserved for network id */ |