libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 4e4a1ce2bb9f6cd1d38fdc5f169d8956afab70c0
parent 24725d33d9074b880b7f993165dd408153004862
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon,  7 Nov 2016 21:31:42 +0300

Fixed calloc() substitution.

Diffstat:
Msrc/microhttpd/Makefile.am | 6+-----
Mw32/common/MHD_config.h | 3+++
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am @@ -68,12 +68,8 @@ libmicrohttpd_la_SOURCES = \ mhd_locks.h \ mhd_sockets.c mhd_sockets.h \ mhd_itc.c mhd_itc.h mhd_itc_types.h \ - mhd_compat.h \ + mhd_compat.c mhd_compat.h \ response.c response.h -if HAVE_W32 -libmicrohttpd_la_SOURCES += \ - mhd_compat.c -endif libmicrohttpd_la_CPPFLAGS = \ $(AM_CPPFLAGS) $(MHD_LIB_CPPFLAGS) \ diff --git a/w32/common/MHD_config.h b/w32/common/MHD_config.h @@ -74,6 +74,9 @@ /* Define to 1 if you have the `gmtime_s' function in W32 form. */ #define HAVE_W32_GMTIME_S 1 +/* Define to 1 if you have the usable `calloc' function. */ +#define HAVE_CALLOC 1 + #if _MSC_VER >= 1900 /* snprintf() supported natively since VS2015 */ /* Define to 1 if you have the `snprintf' function. */ #define HAVE_SNPRINTF 1