summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-05-02 00:19:55 +0100
committeriphydf <iphydf@users.noreply.github.com>2020-05-02 00:19:55 +0100
commite057bae563e133dbab7381ebbe1dc10f93d6eb4f (patch)
treeb4d85289a59aab7d6c92050d18cc1b1fa5d22cb4
parent9be4dbb4335bf7d893c8d00566d3276ab6dedd14 (diff)
Include `<string.h>` for `explicit_bzero`.
We need this for vanilla nacl builds on Linux.
-rw-r--r--toxcore/crypto_core_mem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/crypto_core_mem.c b/toxcore/crypto_core_mem.c
index b8c0bd9b..86f3d0c9 100644
--- a/toxcore/crypto_core_mem.c
+++ b/toxcore/crypto_core_mem.c
@@ -29,6 +29,8 @@
29#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 29#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
30#include <windows.h> 30#include <windows.h>
31#include <wincrypt.h> 31#include <wincrypt.h>
32#elif defined(HAVE_EXPLICIT_BZERO)
33#include <string.h>
32#endif 34#endif
33#endif 35#endif
34 36