# HG changeset patch # User Mikael Hallendal # Date 1219923276 -7200 # Node ID 834033c54bb20a3022a6efaa3bd16e930a5ba1fc # Parent 2ca213d87266f981bacfb81d13e39fc1b161e562 Include netinet/in_systm.h in lm-sock.c, fixes LM-130. Added check for netinet/in_systm.h and include it in lm-sock.c if it exists. It fixes a build error on BSD. diff -r 2ca213d87266 -r 834033c54bb2 configure.ac --- a/configure.ac Thu Aug 28 11:14:07 2008 +0200 +++ b/configure.ac Thu Aug 28 13:34:36 2008 +0200 @@ -52,7 +52,7 @@ AM_PATH_GLIB_2_0 -AC_CHECK_HEADERS([arpa/inet.h fcntl.h memory.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h]) +AC_CHECK_HEADERS([arpa/inet.h fcntl.h memory.h netdb.h netinet/in.h netinet/in_systm.h stdlib.h string.h sys/socket.h sys/time.h unistd.h]) AC_CHECK_HEADERS([winsock2.h arpa/nameser_compat.h]) if test "$ac_cv_header_winsock2_h" = "yes"; then diff -r 2ca213d87266 -r 834033c54bb2 loudmouth/lm-sock.c --- a/loudmouth/lm-sock.c Thu Aug 28 11:14:07 2008 +0200 +++ b/loudmouth/lm-sock.c Thu Aug 28 13:34:36 2008 +0200 @@ -19,6 +19,7 @@ */ #include + #include #include @@ -29,9 +30,16 @@ #include #include #include + +/* Needed for BSD, LM-130 */ +#ifdef HAVE_NETINET_IN_SYSTM_H +#include +#endif + #include #include #include + #include #define LM_SHUTDOWN SHUT_RDWR