diff options
author | David CARLIER <[email protected]> | 2019-08-17 06:17:30 +0100 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2019-08-17 14:17:30 +0900 |
commit | 28267cea083408185de3e0aaafd14ec76c9a3157 (patch) | |
tree | da06e42df85a32b40a2aa84abc9a242a6bb73aba /missing/explicit_bzero.c | |
parent | ccbfb054b1dcd06d30924c4a83af1bac75d78c31 (diff) |
NetBSD native support of explicit_bzero's like feature (#2145)
Diffstat (limited to 'missing/explicit_bzero.c')
-rw-r--r-- | missing/explicit_bzero.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/missing/explicit_bzero.c b/missing/explicit_bzero.c index a7ff9cb517..1804cdd42e 100644 --- a/missing/explicit_bzero.c +++ b/missing/explicit_bzero.c @@ -33,7 +33,13 @@ #undef explicit_bzero #ifndef HAVE_EXPLICIT_BZERO - #ifdef HAVE_MEMSET_S + #ifdef HAVE_EXPLICIT_MEMSET +void +explicit_bzero(void *b, size_t len) +{ + (void)explicit_memset(b, 0, len); +} + #elif defined HAVE_MEMSET_S void explicit_bzero(void *b, size_t len) { |