--- loudmouth/lm-sock.c.orig	Sun Aug 31 13:42:29 2008
+++ loudmouth/lm-sock.c	Sun Aug 31 13:43:08 2008
@@ -29,7 +29,9 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/socket.h>
+#include <sys/types.h>
 #include <fcntl.h>
+#include <netinet/in_systm.h>
 
 /* Needed for BSD, LM-130 */
 #ifdef HAVE_NETINET_IN_SYSTM_H
