Andrea Mondelli has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16102
Change subject: sim: added missed macro definition on MacOS
......................................................................
sim: added missed macro definition on MacOS
A recent patch add the use of the macro:
CMSG_ALIGN
This macro is not very cross-platform, and needs to be
defined according to the platform.
This patch defines the macro on the MacOS.
Change-Id: I582f69e652dc060b4532358141179ad6d37eafc7
---
M src/sim/syscall_emul.hh
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
index ceeacd3..965b106 100644
--- a/src/sim/syscall_emul.hh
+++ b/src/sim/syscall_emul.hh
@@ -116,6 +116,10 @@
#include "sim/syscall_emul_buf.hh"
#include "sim/syscall_return.hh"
+#if defined(__APPLE__) && defined(__MACH__)
+#define CMSG_ALIGN(n) __DARWIN_ALIGN32(n)
+#endif
+
//////////////////////////////////////////////////////////////////////
//
// The following emulation functions are generic enough that they
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16102
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I582f69e652dc060b4532358141179ad6d37eafc7
Gerrit-Change-Number: 16102
Gerrit-PatchSet: 1
Gerrit-Owner: Andrea Mondelli <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev