From: Markos Chandras <[email protected]>
Signed-off-by: Markos Chandras <[email protected]>
---
libc/sysdeps/linux/common/symlink.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/libc/sysdeps/linux/common/symlink.c
b/libc/sysdeps/linux/common/symlink.c
index e53e8d4..9632fa3 100644
--- a/libc/sysdeps/linux/common/symlink.c
+++ b/libc/sysdeps/linux/common/symlink.c
@@ -9,6 +9,19 @@
#include <sys/syscall.h>
#if defined __USE_BSD || defined __USE_UNIX98 || defined __USE_XOPEN2K
+#include <fcntl.h>
#include <unistd.h>
+
+#if defined(__NR_symlinkat) && ! defined(__NR_symlink)
+int symlink(const char* oldpath, const char* newpath)
+{
+ return symlinkat(oldpath, AT_FDCWD, newpath);
+}
+
+#else
+
_syscall2(int, symlink, const char *, oldpath, const char *, newpath)
+
+#endif
+
#endif
--
1.7.1
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc