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 5a369d9de..429ade047 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -182,4 +182,8 @@ int flock(int, int);
182struct tm *localtime_r(const time_t *, struct tm *); 182struct tm *localtime_r(const time_t *, struct tm *);
183#endif 183#endif
184 184
185#ifndef HAVE_REALPATH
186#define realpath(x, y) (sftp_realpath((x), (y))
187#endif
188
185#endif /* _BSD_MISC_H */ 189#endif /* _BSD_MISC_H */