diff options
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 3bfb11246..a582a4eec 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -396,6 +396,17 @@ AC_DEFUN([CURL_CHECK_STRERROR_R], AC_MSG_RESULT(no))])]) if test "x$strerror_r" = "xyes"; then + + dnl check if strerror_r is properly declared in the headers + AC_CHECK_DECL(strerror_r, , + AC_DEFINE(HAVE_NO_STRERROR_R_DECL, 1, [we have no strerror_r() proto]) +, +[#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <errno.h> +]) + dnl determine if this strerror_r() is glibc or POSIX AC_MSG_CHECKING([for a glibc strerror_r API]) AC_TRY_RUN([ |