3130
|
1 diff -urEb civetweb-1.11.orig/src/civetweb.c civetweb-1.11/src/civetweb.c
|
|
2 --- civetweb-1.11.orig/src/civetweb.c 2019-01-16 10:52:21.313348500 +0100
|
|
3 +++ civetweb-1.11/src/civetweb.c 2019-01-16 11:59:58.995605655 +0100
|
|
4 @@ -20,6 +20,14 @@
|
|
5 * THE SOFTWARE.
|
|
6 */
|
|
7
|
|
8 +
|
|
9 +#if defined(__LSB_VERSION__)
|
|
10 +// These definitions are mandatory for Linux Standard Base
|
|
11 +# define NO_CACHING
|
|
12 +# define NO_ALTERNATIVE_QUEUE
|
|
13 +# define NO_THREAD_NAME
|
|
14 +#endif
|
|
15 +
|
|
16 #if defined(__GNUC__) || defined(__MINGW32__)
|
|
17 #define GCC_VERSION \
|
|
18 (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
|
19 @@ -536,6 +544,10 @@
|
|
20 #if !defined(EWOULDBLOCK)
|
|
21 #define EWOULDBLOCK WSAEWOULDBLOCK
|
|
22 #endif /* !EWOULDBLOCK */
|
|
23 +#if !defined(ECONNRESET)
|
|
24 +// Macro ECONNRESET is not always defined (e.g. on Visual Studio 2008)
|
|
25 +# define ECONNRESET WSAECONNRESET
|
|
26 +#endif /* !ECONNRESET */
|
|
27 #define _POSIX_
|
|
28 #define INT64_FMT "I64d"
|
|
29 #define UINT64_FMT "I64u"
|