OSDN Git Service

open64: ensure that openat check works
authorVineet Gupta <vgupta@synopsys.com>
Thu, 19 Jun 2014 07:08:38 +0000 (12:38 +0530)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 24 Jun 2014 11:13:18 +0000 (13:13 +0200)
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>
libc/sysdeps/linux/common/open64.c

index 23a777b..6e65a98 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <_lfs_64.h>
+#include <sys/syscall.h>
 #include <fcntl.h>
 #include <stdarg.h>
 #include <cancel.h>