sim: ppc: use correct macros

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>
This commit is contained in:
Pietro Monteiro
2025-07-04 21:44:21 -04:00
parent 3960e5b824
commit eec64e3f6d

View 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