summaryrefslogtreecommitdiff
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2015-08-22 10:05:45 +0100
committerColin Watson <cjwatson@debian.org>2015-08-22 10:05:45 +0100
commit58ddb8ad21f21f5358db0204c4ba9abf94a1ca11 (patch)
treec55df1f23e6fa0fb87a96d8ec4c06a68c3a82b45 /openbsd-compat/openbsd-compat.h
parent544df7a04ae5b5c1fc30be7c445ad685d7a02dc9 (diff)
parent1dc8d93ce69d6565747eb44446ed117187621b26 (diff)
Import openssh_7.0p1.orig.tar.gz
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r--openbsd-compat/openbsd-compat.h10
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
73char *realpath(const char *path, char *resolved); 81char *realpath(const char *path, char *resolved);
74#endif 82#endif
75 83
76#ifndef HAVE_RRESVPORT_AF 84#ifndef HAVE_RRESVPORT_AF
77int rresvport_af(int *alport, sa_family_t af); 85int rresvport_af(int *alport, sa_family_t af);