arch-arm,sim: make compile on FreeBSD
Add missing #include / #define to make at least X86 and ARM gem5.opt compile again on FreeBSD. Change-Id: I3faa1437fe7175f3b8174c6f0b6a4c42b6396370 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41295 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
committed by
B.A. Zeeb
parent
9a0b79459d
commit
2334689b57
@@ -34,6 +34,9 @@
|
||||
#include "arch/arm/freebsd/se_workload.hh"
|
||||
|
||||
#include <sys/syscall.h>
|
||||
#if !defined ( __GNU_LIBRARY__ ) && defined(__FreeBSD__)
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
#include "arch/arm/process.hh"
|
||||
#include "base/loader/object_file.hh"
|
||||
|
||||
@@ -110,6 +110,8 @@
|
||||
|
||||
#if defined(__APPLE__) && defined(__MACH__) && !defined(CMSG_ALIGN)
|
||||
#define CMSG_ALIGN(len) (((len) + sizeof(size_t) - 1) & ~(sizeof(size_t) - 1))
|
||||
#elif defined(__FreeBSD__) && !defined(CMSG_ALIGN)
|
||||
#define CMSG_ALIGN(n) _ALIGN(n)
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user