summaryrefslogtreecommitdiff
path: root/openbsd-compat
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 /openbsd-compat
parentbb4f003ed8c5f61ec74a66bcedc8ab19bf5b35c4 (diff)
Use sftp_realpath if no native realpath.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/bsd-misc.h4
1 files changed, 4 insertions, 0 deletions
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 */