summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/linux/process.cc2
-rw-r--r--src/sim/syscall_emul.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc
index 22fe0026c..49d3e5aa8 100644
--- a/src/arch/x86/linux/process.cc
+++ b/src/arch/x86/linux/process.cc
@@ -39,6 +39,8 @@
#include "arch/x86/linux/process.hh"
+#include <sys/syscall.h>
+
#include "arch/x86/isa_traits.hh"
#include "arch/x86/linux/linux.hh"
#include "arch/x86/registers.hh"
diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc
index 4a6fafa27..3d17b5d75 100644
--- a/src/sim/syscall_emul.cc
+++ b/src/sim/syscall_emul.cc
@@ -32,7 +32,7 @@
#include "sim/syscall_emul.hh"
#include <fcntl.h>
-#include <syscall.h>
+#include <sys/syscall.h>
#include <unistd.h>
#include <csignal>