From a65ebcad0326d997c5bf6102887e3db54ccaf3fb Mon Sep 17 00:00:00 2001 From: Keith Rarick Date: Tue, 28 Apr 2009 16:44:06 -0700 Subject: [PATCH] Fix the build on Solaris. Closes gh-4. --- binlog.c | 1 + configure.in | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/binlog.c b/binlog.c index ec937c5..3625b6a 100644 --- a/binlog.c +++ b/binlog.c @@ -28,6 +28,7 @@ #include #include #include +#include #include "tube.h" #include "job.h" diff --git a/configure.in b/configure.in index 65066e8..f011f48 100644 --- a/configure.in +++ b/configure.in @@ -100,6 +100,14 @@ else CFLAGS="$CFLAGS -I$LIBEVENT_DIR/include" LIBS="$LIBS -levent" + AC_CHECK_LIB([socket], [bind], [ + LIBS="$LIBS -lsocket" + ]) + + AC_CHECK_LIB([nsl], [inet_aton], [ + LIBS="$LIBS -lnsl" + ]) + if test "$BEAN_RPATH" != "no"; then LDFLAGS="$LDFLAGS $ld_runpath_switch$LIBEVENT_DIR/$LIBDIR" fi -- 2.11.4.GIT