@ -47,7 +47,7 @@ m4_include([libev/libev.m4])
dnl Add library for mingw
case $host in
*-mingw*)
LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32"
LIBS="$LIBS -ladvapi32 -lgdi32 -lws2_32 -lcrypt32"
;;
*)
@ -19,6 +19,11 @@
#ifdef _WIN32
# include <windows.h>
# include <wincrypt.h>
#ifdef __MINGW32__
#ifndef SecureZeroMemory
#define SecureZeroMemory(p,s) RtlFillMemory((p),(s),0)
#endif
#else
# include <unistd.h>