Include missing.h from libradius.h
authoraland <aland>
Thu, 5 Apr 2007 09:59:41 +0000 (09:59 +0000)
committeraland <aland>
Thu, 5 Apr 2007 09:59:41 +0000 (09:59 +0000)
Do not include it from radiusd.h

Add more includes to missing.h, so everything it references
is defined in a header file it includes

Removed includes from libradius.h, as they're now in missing.h

src/include/libradius.h
src/include/missing.h
src/include/radiusd.h

index 7be72bd..0514eea 100644 (file)
 #include <freeradius-devel/ident.h>
 RCSIDH(libradius_h, "$Id$")
 
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
+#include <freeradius-devel/missing.h>
 
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #endif
 
-#ifdef HAVE_NETINET_IN_H
-#include       <netinet/in.h>
-#endif
-
-#ifdef HAVE_ARPA_INET_H
-#include       <arpa/inet.h>
-#endif
-
-#ifdef HAVE_SYS_SOCKET_H
-#include       <sys/socket.h>
-#endif
-
 #include <stdio.h>
 #include <stdarg.h>
 
index 054f5d6..37dbf0b 100644 (file)
@@ -20,6 +20,30 @@ RCSIDH(missing_h, "$Id$")
 #include <sys/types.h>
 #endif
 
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_NETINET_IN_H
+#include       <netinet/in.h>
+#endif
+
+#ifdef HAVE_ARPA_INET_H
+#include       <arpa/inet.h>
+#endif
+
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 /*
  *     Functions from missing.c
  */
index cd6d199..ba14bfa 100644 (file)
@@ -11,7 +11,6 @@
 #include <freeradius-devel/ident.h>
 RCSIDH(radiusd_h, "$Id$")
 
-#include <freeradius-devel/missing.h>
 #include <freeradius-devel/libradius.h>
 #include <freeradius-devel/radpaths.h>
 #include <freeradius-devel/conf.h>