summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/symlink.c')
-rw-r--r--libc/sysdeps/linux/common/symlink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/symlink.c b/libc/sysdeps/linux/common/symlink.c
index 3c8c39751..97f34eb8f 100644
--- a/libc/sysdeps/linux/common/symlink.c
+++ b/libc/sysdeps/linux/common/symlink.c
@@ -7,6 +7,8 @@
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-#include "syscalls.h"
+#include <sys/syscall.h>
+#if defined __USE_BSD || defined __USE_UNIX98 || defined __USE_XOPEN2K
#include <unistd.h>
_syscall2(int, symlink, const char *, oldpath, const char *, newpath);
+#endif