aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-07-10 09:57:22 -0400
committerNick Mathewson <nickm@torproject.org>2015-07-10 09:59:29 -0400
commitd18215ed1640b5a7dcbb81588ef5a173a22200f3 (patch)
treea21bccf3d886cb6cc0310e7648971a9feccf9e34 /src
parentad0d1818540f85de7d8c205c70c0201d1c688725 (diff)
downloadtor-d18215ed1640b5a7dcbb81588ef5a173a22200f3.tar.gz
tor-d18215ed1640b5a7dcbb81588ef5a173a22200f3.zip
Try one more one more time to get tor-ci-windows working
Apparently its mingw headers are missing some stuff.
Diffstat (limited to 'src')
-rw-r--r--src/common/compat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 7355d34ddd..34f6ea2ba3 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -72,6 +72,16 @@
#ifdef _WIN32
#include <conio.h>
#include <wchar.h>
+/* Some mingw headers lack these. :p */
+#ifndef HAVE__GETWCH
+wint_t _getwch(void);
+#endif
+#ifndef WEOF
+#define WEOF (wchar_t)(0xFFFF)
+#endif
+#ifndef HAVE_SECUREZEROMEMORY
+PVOID SecureZeroMemory(PVOID ptr, SIZE_T cnt);
+#endif
#elif defined(HAVE_READPASSPHRASE_H)
#include <readpassphrase.h>
#else