summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-18 18:41:18 +0000
committermidipix <writeonce@midipix.org>2024-03-18 18:41:18 +0000
commitec550d8a78930b4227993b72b539a0044d6609bf (patch)
tree942204d4c301cb9bc480b0df90d22cefca1ecbea
parent1c2246c97c5c08be76d9aab8b964d077776fe80f (diff)
downloadslibtool-ec550d8a78930b4227993b72b539a0044d6609bf.tar.bz2
slibtool-ec550d8a78930b4227993b72b539a0044d6609bf.tar.xz
internals: slbt_realpath(): SYS___realpathat: avoid re-definition of syscall().
-rw-r--r--src/internal/slibtool_realpath_impl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/internal/slibtool_realpath_impl.c b/src/internal/slibtool_realpath_impl.c
index 4e586a8..63fc3c4 100644
--- a/src/internal/slibtool_realpath_impl.c
+++ b/src/internal/slibtool_realpath_impl.c
@@ -18,6 +18,7 @@
#ifdef HAVE_SYS_SYSCALL_H
#include <sys/syscall.h>
+#include <unistd.h>
#endif
#ifdef _MIDIPIX_ABI
@@ -28,10 +29,6 @@
#define ENOTSUP EOPNOTSUPP
#endif
-#ifdef SYS___realpathat
-extern long syscall(int, ...);
-#endif
-
slbt_hidden int slbt_realpath(
int fdat,
const char * path,