summaryrefslogtreecommitdiff
path: root/xmalloc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2016-02-16 10:45:02 +1100
committerDamien Miller <djm@mindrot.org>2016-02-16 10:45:02 +1100
commit5ac712d81a84396aab441a272ec429af5b738302 (patch)
tree549117d2b090ba70a9178928799e8c02aed24afe /xmalloc.c
parent24c9bded569d9f2449ded73f92fb6d12db7a9eec (diff)
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 dea9dd9f..b5832367 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 *