Files

12 lines
350 B
Diff
Raw Permalink Normal View History

2026-04-18 20:57:18 -07:00
--- openbsd-compat/explicit_bzero.c.orig
+++ openbsd-compat/explicit_bzero.c
@@ -10,6 +10,8 @@
#if !defined(HAVE_EXPLICIT_BZERO) && !defined(_WIN32)
#include <string.h>
+/* declare bzero explicitly: hidden by _POSIX_C_SOURCE on older SDKs */
+extern void bzero(void *, size_t);
/*
* explicit_bzero - don't let the compiler optimize away bzero