Add missing #includes for FreeBSD and Solaris.

diff --git a/files/smb.c b/files/smb.c
index 2264d35..6047210 100644
--- a/files/smb.c
+++ b/files/smb.c
@@ -53,8 +53,18 @@
 #include <utime.h>
 #include <sys/socket.h>
 #include <sys/types.h>
+#ifdef HAVE_NETINET_IN_SYSTM_H
+#include <netinet/in_systm.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_NETINET_IP_H
 #include <netinet/ip.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
+#endif
 
 #include "winerror.h"
 #include "windef.h"