]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Move / add header files
authorAlan T. DeKok <aland@freeradius.org>
Sun, 22 Apr 2012 08:34:14 +0000 (10:34 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 22 Apr 2012 08:34:14 +0000 (10:34 +0200)
Includes belong AFTER the main includes, not before

src/lib/dhcp.c

index 29cf1f98e93dafd9b40ec72048122216a73198ae..b459fb12d3f46a49f2ca2a0c54cea256aedb0383 100644 (file)
@@ -21,9 +21,6 @@
  * Copyright 2008 Alan DeKok <aland@deployingradius.com>
  */
 
-#include <sys/ioctl.h>
-#include <net/if_arp.h>
-
 #include       <freeradius-devel/ident.h>
 RCSID("$Id$")
 
@@ -33,6 +30,18 @@ RCSID("$Id$")
 
 #ifdef WITH_DHCP
 
+#include <sys/ioctl.h>
+
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h
+#endif
+
+#include <net/if_arp.h>
+
+
 #define DHCP_CHADDR_LEN        (16)
 #define DHCP_SNAME_LEN (64)
 #define DHCP_FILE_LEN  (128)