summaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-10-16 00:48:28 +0200
committerDamien Miller <djm@mindrot.org>2015-10-16 00:48:28 +0200
commiteb6c50d82aa1f0d3fc95f5630ea69761e918bfcd (patch)
tree09cabda73599e04524a5793ab684c58ae94e6227 /openbsd-compat
parents/SANDBOX_TAME/SANDBOX_PLEDGE/g (diff)
downloadopenssh-eb6c50d82aa1f0d3fc95f5630ea69761e918bfcd.tar.xz
openssh-eb6c50d82aa1f0d3fc95f5630ea69761e918bfcd.zip
fix compilation on systems without SYMLOOP_MAX
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/realpath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/realpath.c b/openbsd-compat/realpath.c
index a0199ab34..a2f090e55 100644
--- a/openbsd-compat/realpath.c
+++ b/openbsd-compat/realpath.c
@@ -44,6 +44,10 @@
#include <unistd.h>
#include <limits.h>
+#ifndef SYMLOOP_MAX
+# define SYMLOOP_MAX 32
+#endif
+
/* A slightly modified copy of this file exists in libexec/ld.so */
/*