diff --git a/configure.in b/configure.in index 5a62a943af9..a9e7b6e8c65 100644 --- a/configure.in +++ b/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 ], -[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