mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-05 16:39:19 +00:00
Link ws2_32 in order to make use of select()
This commit is contained in:
parent
fd71da8ade
commit
5f797147fb
@ -15,6 +15,12 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#if defined (_WIN)
|
||||||
|
#include <winsock2.h> // needed for select()
|
||||||
|
#else
|
||||||
|
#include <sys/select.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
bool overflow_check_u32_add (const u32 a, const u32 b);
|
bool overflow_check_u32_add (const u32 a, const u32 b);
|
||||||
bool overflow_check_u32_mul (const u32 a, const u32 b);
|
bool overflow_check_u32_mul (const u32 a, const u32 b);
|
||||||
bool overflow_check_u64_add (const u64 a, const u64 b);
|
bool overflow_check_u64_add (const u64 a, const u64 b);
|
||||||
|
@ -262,6 +262,7 @@ LFLAGS_NATIVE := $(LFLAGS)
|
|||||||
LFLAGS_NATIVE += -Wl,--dynamicbase -Wl,--nxcompat
|
LFLAGS_NATIVE += -Wl,--dynamicbase -Wl,--nxcompat
|
||||||
LFLAGS_NATIVE += -lpsapi
|
LFLAGS_NATIVE += -lpsapi
|
||||||
LFLAGS_NATIVE += -liconv
|
LFLAGS_NATIVE += -liconv
|
||||||
|
LFLAGS_NATIVE += -lws2_32
|
||||||
endif # MSYS2
|
endif # MSYS2
|
||||||
|
|
||||||
##
|
##
|
||||||
@ -299,9 +300,11 @@ LFLAGS_CROSS_LINUX64 += -lm
|
|||||||
LFLAGS_CROSS_WIN32 := $(LFLAGS)
|
LFLAGS_CROSS_WIN32 := $(LFLAGS)
|
||||||
LFLAGS_CROSS_WIN32 += -Wl,--dynamicbase -Wl,--nxcompat
|
LFLAGS_CROSS_WIN32 += -Wl,--dynamicbase -Wl,--nxcompat
|
||||||
LFLAGS_CROSS_WIN32 += -lpsapi
|
LFLAGS_CROSS_WIN32 += -lpsapi
|
||||||
|
LFLAGS_CROSS_WIN32 += -lws2_32
|
||||||
LFLAGS_CROSS_WIN64 := $(LFLAGS)
|
LFLAGS_CROSS_WIN64 := $(LFLAGS)
|
||||||
LFLAGS_CROSS_WIN64 += -Wl,--dynamicbase -Wl,--nxcompat
|
LFLAGS_CROSS_WIN64 += -Wl,--dynamicbase -Wl,--nxcompat
|
||||||
LFLAGS_CROSS_WIN64 += -lpsapi
|
LFLAGS_CROSS_WIN64 += -lpsapi
|
||||||
|
LFLAGS_CROSS_WIN64 += -lws2_32
|
||||||
|
|
||||||
CFLAGS_REMOVE_LZMA := -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef
|
CFLAGS_REMOVE_LZMA := -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user