summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/autoconf/functions.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index e474984f..a91eeebc 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -1699,7 +1699,7 @@ AC_CACHE_CHECK([whether strerror_r returns char *],
[ac_cv_func_strerror_r_char_p], [
ac_cv_func_strerror_r_char_p=no
if test $ac_cv_have_decl_strerror_r = yes; then
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@include <string.h>],
[[
char buf[100];
char x = *strerror_r (0, buf, sizeof buf);