diff options
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index cb59ccd57..1ff7114ef 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h | |||
@@ -70,8 +70,16 @@ void *reallocarray(void *, size_t, size_t); | |||
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | #if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH) | 72 | #if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH) |
73 | /* | ||
74 | * glibc's FORTIFY_SOURCE can redefine this and prevent us picking up the | ||
75 | * compat version. | ||
76 | */ | ||
77 | # ifdef BROKEN_REALPATH | ||
78 | # define realpath(x, y) _ssh_compat_realpath(x, y) | ||
79 | # endif | ||
80 | |||
73 | char *realpath(const char *path, char *resolved); | 81 | char *realpath(const char *path, char *resolved); |
74 | #endif | 82 | #endif |
75 | 83 | ||
76 | #ifndef HAVE_RRESVPORT_AF | 84 | #ifndef HAVE_RRESVPORT_AF |
77 | int rresvport_af(int *alport, sa_family_t af); | 85 | int rresvport_af(int *alport, sa_family_t af); |