fix fallout from BSD patches
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 10 Jul 2009 16:37:06 +0000 (18:37 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 10 Jul 2009 16:37:06 +0000 (18:37 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/hdparm.c
networking/udhcp/clientpacket.c
networking/udhcp/clientsocket.c
util-linux/mkfs_vfat.c

index 362b212a36994d10fe3cb0781c37ba3120314ade..60682231adf9d30d1acfac51e989f05cc172c61f 100644 (file)
  * hdparm.c - Command line interface to get/set hard disk parameters
  *          - by Mark Lord (C) 1994-2002 -- freely distributable
  */
+#include "libbb.h"
+/* must be _after_ libbb.h: */
 #include <linux/hdreg.h>
 #include <sys/mount.h>
-#include "libbb.h"
 
 /* device types */
 /* ------------ */
index 0a3e6441b9854b7a404a2f5cb0feca451c2ca759..8ccdfcca23a64a60a85e86844ee8d3163122b4da 100644 (file)
@@ -7,6 +7,10 @@
  *
  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
  */
+#include "common.h"
+#include "dhcpd.h"
+#include "dhcpc.h"
+#include "options.h"
 
 //#include <features.h>
 #if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION
 #include <linux/if_ether.h>
 #endif
 
-#include "common.h"
-#include "dhcpd.h"
-#include "dhcpc.h"
-#include "options.h"
-
 
 /* Create a random xid */
 uint32_t FAST_FUNC random_xid(void)
index 0febc0459d600d7d6c5cc2a31ff4ab5bfaa25f13..8e68f31e7aaceb409a0123cc58a36e9d3a6a7093 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
+#include "common.h"
+#include "dhcpd.h"
+#include "dhcpc.h"
+
 
 //#include <features.h>
 #include <asm/types.h>
 #endif
 #include <linux/filter.h>
 
-#include "common.h"
-#include "dhcpd.h"
-#include "dhcpc.h"
-
 int FAST_FUNC udhcp_raw_socket(int ifindex)
 {
        int fd;
index 8d12babdc34dc91e7e75fd98ceb42c243a4c488e..dff10f9e1c6e40854ac0355789be16e7b113dd06 100644 (file)
@@ -7,6 +7,8 @@
  *
  * Licensed under GPLv2, see file LICENSE in this tarball for details.
  */
+#include "libbb.h"
+
 #include <linux/hdreg.h> /* HDIO_GETGEO */
 #include <linux/fd.h>    /* FDGETPRM */
 #include <sys/mount.h>   /* BLKSSZGET */
@@ -14,7 +16,6 @@
 # define BLKSSZGET _IO(0x12, 104)
 #endif
 //#include <linux/msdos_fs.h>
-#include "libbb.h"
 #include "volume_id/volume_id_internal.h"
 
 #define SECTOR_SIZE             512