aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-15 15:49:36 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-15 15:49:36 +0000
commitc5b1ec61e032ef2d5ee3be69cbfe58365b75e24d (patch)
tree3e9e7c2b43314acdd1f4db7e3a89a3c69daf814a /include/platform.h
parent0e247e78577444e11ba00ae15c8648373487a78e (diff)
downloadbusybox-w32-c5b1ec61e032ef2d5ee3be69cbfe58365b75e24d.tar.gz
busybox-w32-c5b1ec61e032ef2d5ee3be69cbfe58365b75e24d.tar.bz2
busybox-w32-c5b1ec61e032ef2d5ee3be69cbfe58365b75e24d.zip
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.) git-svn-id: svn://busybox.net/trunk/busybox@15393 69ca8d6d-28ef-0310-b511-8ec308f3f277
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;
242#define bb_setpgrp setpgrp() 242#define bb_setpgrp setpgrp()
243#endif 243#endif
244 244
245#if defined(__linux__) && !defined(BLKGETSIZE64) 245#if defined(__linux__)
246#include <sys/mount.h>
247#if !defined(BLKGETSIZE64)
246#define BLKGETSIZE64 _IOR(0x12,114,size_t) 248#define BLKGETSIZE64 _IOR(0x12,114,size_t)
247#endif 249#endif
250#endif
248 251
249#endif /* platform.h */ 252#endif /* platform.h */