--- lib/ext2fs/mmp.c.orig 2012-01-12 21:10:16.087185199 -0500 +++ lib/ext2fs/mmp.c 2012-01-12 21:59:56.987918809 -0500 @@ -25,6 +25,14 @@ #include "ext2fs/ext2_fs.h" #include "ext2fs/ext2fs.h" +#if _BSD_SOURCE || _XOPEN_SOURCE >= 500 +#include +#endif + +#include +#include +#include + static int mmp_pagesize(void) { #ifdef _SC_PAGESIZE