arch-x86: Add sys/syscall.h to x86

Change a66d12c guards the selection of getdents()
in x86's file with SYS_getdents, however does not include the right header for
SYS_getdents, which leads to x86 choosing the
unimplemented call. This change adds sys/syscall.h to
address the problem.

This change also adds sys/syscall.hh to,
which only includes syscall.hh and may not be supported on
all systems.

Change-Id: If1adcf41e9e455de5f2827ba98c542fdcacdc22e
Reviewed-by: Ciro Santilli <>
Reviewed-by: Nikos Nikoleris <>
Reviewed-by: Jason Lowe-Power <>
Maintainer: Jason Lowe-Power <>
Maintainer: Brandon Potter <>
2 files changed