Some old kernel headers don't #include BLKSSZGET in sys/mount.h.
authorRob Landley <rob@landley.net>
Thu, 29 Jun 2006 19:00:12 +0000 (19:00 -0000)
committerRob Landley <rob@landley.net>
Thu, 29 Jun 2006 19:00:12 +0000 (19:00 -0000)
include/platform.h

index 636c1a56c2ba3648c687946d058c26da57365fe7..7157f8a45a27394a875f730b720bdeaa035af4c3 100644 (file)
@@ -222,6 +222,9 @@ typedef unsigned long long int  uintmax_t;
 
 #if defined(__linux__)
 #include <sys/mount.h>
+#if !defined(BLKSSZGET)
+#define BLKSSZGET _IO(0x12, 104)
+#endif
 #if !defined(BLKGETSIZE64)
 #define BLKGETSIZE64 _IOR(0x12,114,size_t)
 #endif