termux-packages/packages/pounce/bounce.h.patch

18 lines
355 B
Diff
Raw Normal View History

2022-04-02 03:11:35 +02:00
--- a/bounce.h
+++ b/bounce.h
@@ -34,6 +34,14 @@
#include <sys/time.h>
#include <tls.h>
+#ifdef __ANDROID__
+#include <crypt.h>
+
+static void *(*volatile explicit_memset)(void *, int, size_t) = memset;
+#undef explicit_bzero
+#define explicit_bzero(s, n) explicit_memset(s, 0, n)
+#endif
+
#ifndef OPENSSL_BIN
#define OPENSSL_BIN "openssl"
#endif