]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: ppc: use correct macros
authorPietro Monteiro <pietro@sociotechnical.xyz>
Sat, 5 Jul 2025 01:44:21 +0000 (21:44 -0400)
committerPietro Monteiro <pietro@sociotechnical.xyz>
Sat, 5 Jul 2025 01:44:21 +0000 (21:44 -0400)
AC_STRUCT_ST_* are the names of the autoconf macros, the C
preprocessor macros defined by autoconf/authoeader are
HAVE_STRUCT_STAT_ST_*.

Approved-By: Andrew Burgess <aburgess@redhat.com>
sim/ppc/emul_netbsd.c

index 950f1f4a696a77555cc56b92bcfd7c7953b76c87..37e6c08e8971bc993f53ebed3b330d54a981f434 100644 (file)
@@ -146,13 +146,13 @@ write_stat(unsigned_word addr,
   /* H2T(buf.st_spare2); */
   H2T(buf.st_ctime);
   /* H2T(buf.st_spare3); */
-#ifdef AC_STRUCT_ST_RDEV
+#ifdef HAVE_STRUCT_STAT_ST_RDEV
   H2T(buf.st_rdev);
 #endif
-#ifdef AC_STRUCT_ST_BLKSIZE
+#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
   H2T(buf.st_blksize);
 #endif
-#ifdef AC_STRUCT_ST_BLOCKS
+#ifdef HAVE_STRUCT_STAT_ST_BLOCKS
   H2T(buf.st_blocks);
 #endif
 #if WITH_NetBSD_HOST