Index: lib/ext2fs/unix_io.c
--- lib/ext2fs/unix_io.c.orig
+++ lib/ext2fs/unix_io.c
@@ -50,6 +50,7 @@
 #include <sys/ioctl.h>
 #endif
 #ifdef HAVE_SYS_MOUNT_H
+#include <sys/param.h>
 #include <sys/mount.h>
 #endif
 #if HAVE_SYS_STAT_H
