Commit 3aa00e9c authored by Karel Slaný's avatar Karel Slaný

Added missing patch file.

parent de758261
diff --git a/compat/explicit_bzero.c b/compat/explicit_bzero.c
index a3ba279..6a4177c 100644
--- a/compat/explicit_bzero.c
+++ b/compat/explicit_bzero.c
@@ -6,6 +6,13 @@
#include "config.h"
#include <string.h>
+/* Workaround for MinGW missing SecureZeroMemory(). */
+#if defined(UB_ON_WINDOWS) && defined(__MINGW32__)
+# ifndef SecureZeroMemory
+# define SecureZeroMemory(p, s) RtlFillMemory((p), (s), 0)
+# endif
__attribute__((weak)) void
__explicit_bzero_hook(void *ATTR_UNUSED(buf), size_t ATTR_UNUSED(len))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment