aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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 */