summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-misc.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-02-24 10:25:22 +0100
committerDarren Tucker <dtucker@dtucker.net>2018-02-25 14:09:04 +0100
commita9004425a032d7a7141a5437cfabfd02431e2a74 (patch)
treeb1f1f7914c2d65457ff313427049343153db6ef4 /openbsd-compat/bsd-misc.h
parentupstream: Add ssh-keyscan -D option to make it print its results in (diff)
downloadopenssh-a9004425a032d7a7141a5437cfabfd02431e2a74.tar.xz
openssh-a9004425a032d7a7141a5437cfabfd02431e2a74.zip
Check for bzero and supply if needed.
Since explicit_bzero uses it via an indirect it needs to be a function not just a macro.
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r--openbsd-compat/bsd-misc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index 2cfd5dae6..bf5fad188 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -133,4 +133,8 @@ void warn(const char *, ...) __attribute__((format(printf, 1, 2)));
long long llabs(long long);
#endif
+#ifndef HAVE_DECL_BZERO
+void bzero(void *, size_t);
+#endif
+
#endif /* _BSD_MISC_H */