Commit 01345308 authored by David J. MacKenzie's avatar David J. MacKenzie
Browse files

Make h_errno check not use nested functions.

parent 535d2617
......@@ -1101,14 +1101,10 @@ fi
# If netdb.h doesn't declare h_errno, we must declare it by hand.
AC_MSG_CHECKING(whether netdb declarares h_errno)
AC_TRY_LINK([#include <netdb.h>],
[int
foo ()
{
return h_errno;
}
], [AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_H_ERRNO)],
[AC_MSG_RESULT(no)])
[return h_errno;],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_H_ERRNO)],
[AC_MSG_RESULT(no)])
AC_FUNC_ALLOCA
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment