[git commit] open64: ensure that openat check works

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Jun 24 11:13:18 UTC 2014


commit: http://git.uclibc.org/uClibc/commit/?id=7e829db6ae6f181ce6b6db51e1568acddac81738
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

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>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libc/sysdeps/linux/common/open64.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c
index 23a777b..6e65a98 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>


More information about the uClibc-cvs mailing list