From: Pietro Monteiro Date: Sat, 5 Jul 2025 01:44:21 +0000 (-0400) Subject: sim: ppc: use correct macros X-Git-Tag: binutils-2_45~180 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eec64e3f6d13ac32c40d421b8926fa6a3741146f;p=thirdparty%2Fbinutils-gdb.git 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 --- diff --git a/sim/ppc/emul_netbsd.c b/sim/ppc/emul_netbsd.c index 950f1f4a696..37e6c08e897 100644 --- a/sim/ppc/emul_netbsd.c +++ b/sim/ppc/emul_netbsd.c @@ -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