diff --git a/configure b/configure index a285eed9ea..acf3b606d0 100755 --- a/configure +++ b/configure @@ -2482,7 +2482,8 @@ echocheck "socklib" # for BeOS (socket stuff is in -lsocket, gethostbyname and friends in -lbind): cat > $TMPC << EOF #include -int main(void) { (void) gethostbyname(0); return 0; } +#include +int main(void) { (void) gethostbyname(0); (void) socket(AF_INET, SOCK_STREAM, 0); return 0; } EOF for _ld_tmp in "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && break