Use sftp_realpath if no native realpath.

This commit is contained in:
Darren Tucker 2019-11-01 15:22:32 +11:00
parent bb4f003ed8
commit 79d46de9fb
2 changed files with 5 additions and 0 deletions

View File

@ -1783,6 +1783,7 @@ AC_CHECK_FUNCS([ \
raise \
readpassphrase \
reallocarray \
realpath \
recvmsg \
recallocarray \
rresvport_af \

View File

@ -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 */