mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
Make h_errno check not use nested functions.
This commit is contained in:
parent
535d2617a0
commit
0134530826
12
configure.in
12
configure.in
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user