summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/open64.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2014-06-19 12:38:38 +0530
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-06-24 13:13:18 +0200
commit7e829db6ae6f181ce6b6db51e1568acddac81738 (patch)
tree23c267685d0c6857a94814e22ca57f146e329d5e /libc/sysdeps/linux/common/open64.c
parent1608819110a4f2a40c3781a9c4b8a8f4b2cea69a (diff)
open64: ensure that openat check works
For ARC builds atleast, __NR_xxx was not trickling into in open64.c causing open64->openat a needless detour via open Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/open64.c')
-rw-r--r--libc/sysdeps/linux/common/open64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c
index 23a777b47..6e65a988e 100644
--- a/libc/sysdeps/linux/common/open64.c
+++ b/libc/sysdeps/linux/common/open64.c
@@ -5,6 +5,7 @@
*/
#include <_lfs_64.h>
+#include <sys/syscall.h>
#include <fcntl.h>
#include <stdarg.h>
#include <cancel.h>