From b8a7f76740af7b530df6d78b19e95b4b8f8d5d8f Mon Sep 17 00:00:00 2001 From: duncanmcqueen <206344294+duncanmcqueen@users.noreply.github.com> Date: Wed, 14 Oct 2026 08:26:59 -0500 Subject: [PATCH] configure.ac: look for the socket functions in libnetwork too Haiku has inet_pton(), the other socket functions and h_errno in libnetwork. Without it, the JNI libraries fail to load (undefined __h_errno) and configure does not find the socket functions. Co-Authored-By: Claude Opus 5.5 Signed-off-by: duncanmcqueen <206344294+duncanmcqueen@users.noreply.github.com> --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5adc5774c..2a9d5317f 100644 --- a/configure.ac +++ b/configure.ac @@ -440,7 +440,8 @@ if test "x${COMPILE_JNI}" = xyes; then AC_EGREP_HEADER(u_int32_t, sys/config.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t])) AC_SEARCH_LIBS([clock_gettime], [rt]) - AC_SEARCH_LIBS([inet_pton],[nsl]) + dnl Haiku has the socket functions and h_errno in libnetwork. + AC_SEARCH_LIBS([inet_pton],[nsl network]) AC_CHECK_LIB([socket], [gethostname]) AC_CHECK_FUNCS([ftruncate fsync select \