[PATCH] open64: ensure that openat check works

Vineet Gupta Vineet.Gupta1 at synopsys.com
Thu Jun 19 07:08:38 UTC 2014


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 at synopsys.com>
---
 libc/sysdeps/linux/common/open64.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c
index 23a777b4723a..87db49f6cd22 100644
--- a/libc/sysdeps/linux/common/open64.c
+++ b/libc/sysdeps/linux/common/open64.c
@@ -4,6 +4,7 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
+#include <sys/syscall.h>
 #include <_lfs_64.h>
 #include <fcntl.h>
 #include <stdarg.h>
-- 
1.8.3.2



More information about the uClibc mailing list