]> git.eshelyaron.com Git - emacs.git/commitdiff
Make h_errno check not use nested functions.
authorDavid J. MacKenzie <djm@gnu.org>
Wed, 9 Nov 1994 21:09:27 +0000 (21:09 +0000)
committerDavid J. MacKenzie <djm@gnu.org>
Wed, 9 Nov 1994 21:09:27 +0000 (21:09 +0000)
configure.in

index 5a62a943af999cac77f46f734415dc18ec00ec3d..a9e7b6e8c657c4ec88b14e866323460b35b69a9a 100644 (file)
@@ -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