From adee0adbe676692c3a4a32069d0ccef86cec3c4a Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 14 Mar 2020 19:08:19 +0100 Subject: fixed mingw build caused by an invalid explicit function type cast Signed-off-by: Toni Uhlig --- src/ptunnel.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/ptunnel.h') diff --git a/src/ptunnel.h b/src/ptunnel.h index 2fda8bc..6419eae 100644 --- a/src/ptunnel.h +++ b/src/ptunnel.h @@ -142,7 +142,12 @@ typedef struct { #endif /* function Prototypes */ -void* pt_proxy(void *args); +#ifndef WIN32 +void * pt_proxy(void *args); +#else +unsigned int __stdcall pt_proxy(void *args); +#endif + #ifdef HAVE_PCAP void pcap_packet_handler(u_char *refcon, const struct pcap_pkthdr *hdr, const u_char* pkt); -- cgit v1.2.3