s3 build: Fix incomplete types warnings
authorTim Prouty <tprouty@samba.org>
Thu, 20 Nov 2008 01:29:49 +0000 (17:29 -0800)
committerTim Prouty <tprouty@samba.org>
Thu, 20 Nov 2008 21:11:59 +0000 (13:11 -0800)
lib/util/util.h

index ec1cfef110a21bd8e0fa6820b9395f57d759e6ff..dced557acbe32594d282d1a87248d4ae2598a6e5 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef _SAMBA_UTIL_H_
 #define _SAMBA_UTIL_H_
 
+#include <netinet/in.h>
+
 #if _SAMBA_BUILD_ == 4
 #include "../lib/util/charset/charset.h"
 #endif
@@ -124,9 +126,6 @@ void CatchChildLeaveStatus(void);
 
 /* The following definitions come from lib/util/system.c  */
 
-
-struct in_addr;
-
 /**************************************************************************
 A wrapper for gethostbyname() that tries avoids looking up hostnames 
 in the root domain, which can cause dial-on-demand links to come up for no