Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Core
Tor
Commits
db88d91e
Commit
db88d91e
authored
Jul 12, 2015
by
Nick Mathewson
👁
Browse files
Nth time is maybe the charm for fixing windows readpassword build errors
parent
6b80ff1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
db88d91e
...
...
@@ -396,7 +396,6 @@ dnl Check for functions before libevent, since libevent-1.2 apparently
dnl exports strlcpy without defining it in a header.
AC_CHECK_FUNCS(
SecureZeroMemory \
_NSGetEnviron \
accept4 \
backtrace \
...
...
@@ -436,7 +435,6 @@ AC_CHECK_FUNCS(
uname \
usleep \
vasprintf \
_getwch \
_vscprintf
)
...
...
@@ -445,6 +443,14 @@ if test "$bwin32" != true; then
AC_CHECK_FUNCS(pthread_create)
fi
if test "$bwin32" = true; then
AC_CHECK_DECLS([SecureZeroMemory, _getwch], , , [
#include <windows.h>
#include <conio.h>
#include <wchar.h>
])
fi
AM_CONDITIONAL(BUILD_READPASSPHRASE_C, test x$ac_cv_func_readpassphrase = xno && test $bwin32 = false)
dnl ------------------------------------------------------
...
...
src/common/compat.c
View file @
db88d91e
...
...
@@ -73,13 +73,13 @@
#include
<conio.h>
#include
<wchar.h>
/* Some mingw headers lack these. :p */
#ifndef HAVE__GETWCH
#ifndef HAVE_
DECL_
_GETWCH
wint_t
_getwch
(
void
);
#endif
#ifndef WEOF
#define WEOF (wchar_t)(0xFFFF)
#endif
#ifndef HAVE_SECUREZEROMEMORY
#ifndef HAVE_
DECL_
SECUREZEROMEMORY
PVOID
SecureZeroMemory
(
PVOID
ptr
,
SIZE_T
cnt
);
#endif
#elif defined(HAVE_READPASSPHRASE_H)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment