updated socket library detection in configure.ac
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-03 10:23:25 +09:00
parent 35e8edd783
commit 32d5a3f335
3 changed files with 50 additions and 2 deletions

View File

@ -347,7 +347,10 @@ if test "x$ac_cv_func_connect" = "xno"
then
AC_CHECK_LIB([socket], [connect], [
SOCKET_LIBS="$SOCKET_LIBS -lsocket"
AC_DEFINE(HAVE_CONNECT, 1)
AC_DEFINE(HAVE_CONNECT, 1) ], [
AC_CHECK_LIB([network], [connect], [
SOCKET_LIBS="$SOCKET_LIBS -lnetwork"
AC_DEFINE(HAVE_CONNECT, 1) ])
])
fi
if test "x${platform_win32}" = "xyes"