1 From 9cb650ea96c0e5063775071cfdae072e92c553b8 Mon Sep 17 00:00:00 2001
2 From: emanuele-f <faranda@ntop.org>
3 Date: Tue, 18 Sep 2018 12:49:57 +0200
4 Subject: [PATCH] Compilation fix with new libpcap
6 SOCKET and INVALID_SOCKET are now defined in pcap.h
8 third-party/mongoose/mongoose.c | 4 ++++
9 1 file changed, 4 insertions(+)
11 diff --git a/third-party/mongoose/mongoose.c b/third-party/mongoose/mongoose.c
12 index 6a61cea9b..634c142e3 100644
13 --- a/third-party/mongoose/mongoose.c
14 +++ b/third-party/mongoose/mongoose.c
15 @@ -247,7 +247,9 @@ struct pollfd {
16 #define mg_rename(x, y) rename(x, y)
17 #define mg_sleep(x) usleep((x) * 1000)
19 +#ifndef INVALID_SOCKET
20 #define INVALID_SOCKET (-1)
24 #if ((ULONG_MAX) == (UINT_MAX))
25 @@ -270,7 +272,9 @@ struct pollfd {
28 //#define INT64_FMT PRId64
34 #endif // End of Windows and UNIX specific includes