summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-11-01 15:22:32 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-11-01 18:27:37 +1100
commit79d46de9fbea0f3c0e8ae7cf84effaba089071b0 (patch)
tree8f79bbf73e1d9edf251832b8723ce7420ea9db54
parentbb4f003ed8c5f61ec74a66bcedc8ab19bf5b35c4 (diff)
downloadopenssh-git-79d46de9fbea0f3c0e8ae7cf84effaba089071b0.tar.gz
Use sftp_realpath if no native realpath.
-rw-r--r--configure.ac1
-rw-r--r--openbsd-compat/bsd-misc.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8489384f..a9cbfed0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1783,6 +1783,7 @@ AC_CHECK_FUNCS([ \
raise \
readpassphrase \
reallocarray \
+ realpath \
recvmsg \
recallocarray \
rresvport_af \
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index 5a369d9d..429ade04 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -182,4 +182,8 @@ int flock(int, int);
struct tm *localtime_r(const time_t *, struct tm *);
#endif
+#ifndef HAVE_REALPATH
+#define realpath(x, y) (sftp_realpath((x), (y))
+#endif
+
#endif /* _BSD_MISC_H */