aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid J. MacKenzie1994-11-09 21:09:27 +0000
committerDavid J. MacKenzie1994-11-09 21:09:27 +0000
commit01345308265171acae1d4f2076a984e27bb9a94f (patch)
treee98b2d92b0bf1e2869e21ff5a9a4f45af443f02e
parent535d2617a0c1ae89cd7aad5a871f97470c77eeb8 (diff)
downloademacs-01345308265171acae1d4f2076a984e27bb9a94f.tar.gz
emacs-01345308265171acae1d4f2076a984e27bb9a94f.zip
Make h_errno check not use nested functions.
-rw-r--r--configure.in12
1 files changed, 4 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 5a62a943af9..a9e7b6e8c65 100644
--- a/configure.in
+++ b/configure.in
@@ -1101,14 +1101,10 @@ fi
1101# If netdb.h doesn't declare h_errno, we must declare it by hand. 1101# If netdb.h doesn't declare h_errno, we must declare it by hand.
1102AC_MSG_CHECKING(whether netdb declarares h_errno) 1102AC_MSG_CHECKING(whether netdb declarares h_errno)
1103AC_TRY_LINK([#include <netdb.h>], 1103AC_TRY_LINK([#include <netdb.h>],
1104[int 1104 [return h_errno;],
1105foo () 1105 [AC_MSG_RESULT(yes)
1106{ 1106 AC_DEFINE(HAVE_H_ERRNO)],
1107 return h_errno; 1107 [AC_MSG_RESULT(no)])
1108}
1109], [AC_MSG_RESULT(yes)
1110 AC_DEFINE(HAVE_H_ERRNO)],
1111 [AC_MSG_RESULT(no)])
1112 1108
1113AC_FUNC_ALLOCA 1109AC_FUNC_ALLOCA
1114 1110