diff --git a/configure.ac b/configure.ac index 0b9e892..f4464cd 100644 --- a/configure.ac +++ b/configure.ac @@ -373,6 +373,9 @@ AC_CHECK_FUNCS([strndup clock_gettime fmemopen nl_langinfo]) # check for dirent.h AC_HEADER_DIRENT +# strings.h may not exist on WIN32 +AC_CHECK_HEADERS([strings.h]) + # Override the template file name of the generated .pc file, so that there # is no need to rename the template file when the API version changes. AC_CONFIG_FILES([Makefile diff --git a/src/psl.c b/src/psl.c index 7b6d7f0..f1691e0 100644 --- a/src/psl.c +++ b/src/psl.c @@ -64,7 +64,9 @@ typedef SSIZE_T ssize_t; #include #include #include -#include +#ifdef HAVE_STRINGS_H +# include +#endif #include #include #include