mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-29 04:03:45 +00:00
fix for mingw
This commit is contained in:
+1
-1
@@ -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
|
||||
#endif
|
||||
#else
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user