mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
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.
This commit is contained in:
parent
1a348359e4
commit
a9004425a0
@ -1695,6 +1695,7 @@ AC_CHECK_FUNCS([ \
|
||||
bcrypt_pbkdf \
|
||||
bindresvport_sa \
|
||||
blf_enc \
|
||||
bzero \
|
||||
cap_rights_limit \
|
||||
clock \
|
||||
closefrom \
|
||||
@ -1800,6 +1801,8 @@ AC_CHECK_FUNCS([ \
|
||||
warn \
|
||||
])
|
||||
|
||||
AC_CHECK_DECLS([bzero])
|
||||
|
||||
dnl Wide character support.
|
||||
AC_CHECK_FUNCS([mblen mbtowc nl_langinfo wcwidth])
|
||||
|
||||
|
@ -282,3 +282,11 @@ llabs(long long j)
|
||||
return (j < 0 ? -j : j);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_BZERO
|
||||
void
|
||||
bzero(void *b, size_t n)
|
||||
{
|
||||
(void)memset(b, 0, n);
|
||||
}
|
||||
#endif
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user