From c8764e4de053ecdf63756dc67f8518499b400caf Mon Sep 17 00:00:00 2001
From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Date: Tue, 19 Mar 2002 02:06:25 +0000
Subject: [PATCH] Add missing #includes for FreeBSD and Solaris.

---
 files/smb.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/files/smb.c b/files/smb.c
index 2264d35d6f0..6047210558a 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"
-- 
GitLab