arch-x86: include system syscall header in syscall table files
authorKyle Roarty <kyleroarty1716@gmail.com>
Sat, 7 Nov 2020 00:47:01 +0000 (18:47 -0600)
committerKyle Roarty <kyleroarty1716@gmail.com>
Sat, 7 Nov 2020 05:44:21 +0000 (05:44 +0000)
The getdents syscall is only implemented on hosts that define
SYS_getdents, which is located in <sys/syscall.h>.

That header was missed when splitting the syscall tables into their own
files; this patch adds the header to the syscall table files.

Change-Id: I28d54f6ea2874aa533c89ed7520561e19fe5e5f9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37195
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/x86/linux/syscall_tbl32.cc
src/arch/x86/linux/syscall_tbl64.cc

index 855de8833709f28593fc1f352181489ce506e7c3..50d0969b0f2fdac30bfe40d12c38d7e45c3d33ed 100644 (file)
@@ -25,6 +25,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include <sys/syscall.h>
+
 #include "arch/x86/linux/linux.hh"
 #include "arch/x86/linux/se_workload.hh"
 #include "arch/x86/linux/syscalls.hh"
index 3516ea295c8e461c4037ae194b60b84c57e45a7c..8630265e092984e9c4fdd424b163d2878df06ff6 100644 (file)
@@ -25,6 +25,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include <sys/syscall.h>
+
 #include "arch/x86/linux/linux.hh"
 #include "arch/x86/linux/se_workload.hh"
 #include "arch/x86/linux/syscalls.hh"