diff -Naur dosfstools-3.0.24.orig/src/fsck.fat.h dosfstools-3.0.24/src/fsck.fat.h
--- dosfstools-3.0.24.orig/src/fsck.fat.h	2013-07-19 05:03:32.000000000 +0000
+++ dosfstools-3.0.24/src/fsck.fat.h	2014-01-04 23:30:45.000000000 +0000
@@ -39,6 +39,7 @@
 
 #include <stddef.h>
 #include <endian.h>
+#include "fs-compat.h"
 
 #define VFAT_LN_ATTR (ATTR_RO | ATTR_HIDDEN | ATTR_SYS | ATTR_VOLUME)
 
diff -Naur dosfstools-3.0.24.orig/src/fs-compat.h dosfstools-3.0.24/src/fs-compat.h
--- dosfstools-3.0.24.orig/src/fs-compat.h	1970-01-01 00:00:00.000000000 +0000
+++ dosfstools-3.0.24/src/fs-compat.h	2014-01-04 23:31:49.000000000 +0000
@@ -0,0 +1,7 @@
+#ifndef __FS_COMPAT_H__
+#define __FS_COMPAT_H__
+
+  /* get block device sector size */
+  #define BLKSSZGET  _IO(0x12,104)
+
+#endif
diff -Naur dosfstools-3.0.24.orig/src/mkfs.fat.c dosfstools-3.0.24/src/mkfs.fat.c
--- dosfstools-3.0.24.orig/src/mkfs.fat.c	2014-01-04 23:33:43.000000000 +0000
+++ dosfstools-3.0.24/src/mkfs.fat.c	2014-01-04 23:34:48.000000000 +0000
@@ -66,6 +66,7 @@
 #include <ctype.h>
 #include <endian.h>
 #include "endian-compat.h"
+#include "fs-compat.h"
 
 #include <asm/types.h>
 
