Displaying 1 result from an estimated 1 matches for "e2ce67b".
Did you mean:
e2cdd7b
2006 Feb 19
0
[patch] openat build with older !openat linux tree
...GEFILE.
*/
+#ifdef __NR_openat
#include <asm/unistd.h>
/* <asm/fcntl.h>, despite the name, isn't assembly-safe */
@@ -20,3 +21,4 @@ openat:
jmp __syscall_varadic
.size openat,.-openat
+#endif /* __NR_openat */
diff --git a/klibc/openat.c b/klibc/openat.c
index 2975112..e2ce67b 100644
--- a/klibc/openat.c
+++ b/klibc/openat.c
@@ -10,7 +10,7 @@
#include <fcntl.h>
#include <bitsize.h>
-#if _BITSIZE == 32 && !defined(__i386__) && defined(__NR_openat)
+#if _BITSIZE == 32 && defined(__NR_openat)
extern int __openat(int, const char *,...