From 59ea30913f07ca3014ad83d685bbd398bb7521fa Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Thu, 9 Mar 2023 14:50:52 -0800 Subject: [PATCH] arch-sparc: Rewrite unused array in tgt_stat64 for mac On Mac (tested on Mac Mini M2 Pro) the src/arch/sparc/linux/linux.hh was uncompilable due to `int64_t __unused[3]` not working with the Mac GLIB's `__unused` definition. This was therefore rewritten. Change-Id: I8094a54ccf8dedb8e63ef05770e48eef7012262c Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/68838 Maintainer: Bobby Bruce Tested-by: kokoro Reviewed-by: Melissa Jost --- src/arch/sparc/linux/linux.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/sparc/linux/linux.hh b/src/arch/sparc/linux/linux.hh index a5d88abe6a..5913ddb737 100644 --- a/src/arch/sparc/linux/linux.hh +++ b/src/arch/sparc/linux/linux.hh @@ -89,7 +89,7 @@ class SparcLinux : public Linux, public OpenFlagTable uint64_t st_mtime_nsec; uint64_t st_ctimeX; uint64_t st_ctime_nsec; - int64_t __unused[3]; + int64_t __unused4[3]; }; // SPARC receives weird subsignals for several of its signals. If you