summaryrefslogtreecommitdiffstats
path: root/xmalloc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2016-02-16 00:45:02 +0100
committerDamien Miller <djm@mindrot.org>2016-02-16 00:45:02 +0100
commit5ac712d81a84396aab441a272ec429af5b738302 (patch)
tree549117d2b090ba70a9178928799e8c02aed24afe /xmalloc.c
parentupstream commit (diff)
downloadopenssh-5ac712d81a84396aab441a272ec429af5b738302.tar.xz
openssh-5ac712d81a84396aab441a272ec429af5b738302.zip
make existing ssh_malloc_init only for __OpenBSD__
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmalloc.c b/xmalloc.c
index dea9dd9fe..b58323677 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -29,9 +29,11 @@
void
ssh_malloc_init(void)
{
+#if defined(__OpenBSD__)
extern char *malloc_options;
malloc_options = "S";
+#endif /* __OpenBSD__ */
}
void *