aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_compat.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-08-23 20:13:10 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-08-23 20:13:10 +0000
commit515c50a1fa2706b2d0cd9687c381662e39b30be8 (patch)
treef1b12a1a332c10673b413f8d2e74882212176af0 /src/microhttpd/mhd_compat.h
parenta3fc78c87acc9a411959115c071f60adf54a2e11 (diff)
downloadlibmicrohttpd-515c50a1fa2706b2d0cd9687c381662e39b30be8.tar.gz
libmicrohttpd-515c50a1fa2706b2d0cd9687c381662e39b30be8.zip
mhd_sockets: better sockets errors abstraction, improved performance on W32
Diffstat (limited to 'src/microhttpd/mhd_compat.h')
-rw-r--r--src/microhttpd/mhd_compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_compat.h b/src/microhttpd/mhd_compat.h
index 3f88055f..19ebac5f 100644
--- a/src/microhttpd/mhd_compat.h
+++ b/src/microhttpd/mhd_compat.h
@@ -36,6 +36,12 @@
36 36
37#include "mhd_options.h" 37#include "mhd_options.h"
38#include <stdlib.h> 38#include <stdlib.h>
39#ifdef HAVE_STRING_H /* for strerror() */
40#include <string.h>
41#endif /* HAVE_STRING_H */
42
43 /* MHD_strerror_ is strerror */
44#define MHD_strerror_(errnum) strerror((errnum))
39 45
40/* Platform-independent snprintf name */ 46/* Platform-independent snprintf name */
41#if defined(HAVE_SNPRINTF) 47#if defined(HAVE_SNPRINTF)