# HG changeset patch # User Sebastien Jodogne # Date 1547637802 -3600 # Node ID 858abf26bdf56f22e6fe2a3748f628d5fe526784 # Parent c262b10bfae122688cb5fac43588c4cd98ab6591 missing file diff -r c262b10bfae1 -r 858abf26bdf5 Resources/Patches/civetweb-1.11.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/Patches/civetweb-1.11.patch Wed Jan 16 12:23:22 2019 +0100 @@ -0,0 +1,29 @@ +diff -urEb civetweb-1.11.orig/src/civetweb.c civetweb-1.11/src/civetweb.c +--- civetweb-1.11.orig/src/civetweb.c 2019-01-16 10:52:21.313348500 +0100 ++++ civetweb-1.11/src/civetweb.c 2019-01-16 11:59:58.995605655 +0100 +@@ -20,6 +20,14 @@ + * THE SOFTWARE. + */ + ++ ++#if defined(__LSB_VERSION__) ++// These definitions are mandatory for Linux Standard Base ++# define NO_CACHING ++# define NO_ALTERNATIVE_QUEUE ++# define NO_THREAD_NAME ++#endif ++ + #if defined(__GNUC__) || defined(__MINGW32__) + #define GCC_VERSION \ + (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) +@@ -536,6 +544,10 @@ + #if !defined(EWOULDBLOCK) + #define EWOULDBLOCK WSAEWOULDBLOCK + #endif /* !EWOULDBLOCK */ ++#if !defined(ECONNRESET) ++// Macro ECONNRESET is not always defined (e.g. on Visual Studio 2008) ++# define ECONNRESET WSAECONNRESET ++#endif /* !ECONNRESET */ + #define _POSIX_ + #define INT64_FMT "I64d" + #define UINT64_FMT "I64u"