diff options
Diffstat (limited to 'src/microhttpd/mhd_compat.h')
-rw-r--r-- | src/microhttpd/mhd_compat.h | 6 |
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 @@ #include "mhd_options.h" #include <stdlib.h> +#ifdef HAVE_STRING_H /* for strerror() */ +#include <string.h> +#endif /* HAVE_STRING_H */ + + /* MHD_strerror_ is strerror */ +#define MHD_strerror_(errnum) strerror((errnum)) /* Platform-independent snprintf name */ #if defined(HAVE_SNPRINTF) |