aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-15 15:49:36 +0000
committerRob Landley <rob@landley.net>2006-06-15 15:49:36 +0000
commit22d26fc6ae2af584482deaf92f25bb6a7261ad78 (patch)
tree3e9e7c2b43314acdd1f4db7e3a89a3c69daf814a /include/platform.h
parentd6e5083d16c940e36312f4a1b52317dcfc32c011 (diff)
downloadbusybox-22d26fc6ae2af584482deaf92f25bb6a7261ad78.tar.gz
Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot of
fallout due to the #include <sys/mount.h>. Removed that #include from various applets and fixed up those that were unhappy when that #include was made because they'd block copied stuff out of it. (Sigh.)
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/platform.h b/include/platform.h
index 3e1229e9d..5dbfb7783 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -242,8 +242,11 @@ typedef unsigned long long int uintmax_t;
#define bb_setpgrp setpgrp()
#endif
-#if defined(__linux__) && !defined(BLKGETSIZE64)
+#if defined(__linux__)
+#include <sys/mount.h>
+#if !defined(BLKGETSIZE64)
#define BLKGETSIZE64 _IOR(0x12,114,size_t)
#endif
+#endif
#endif /* platform.h */