--- lib/ext2fs/dirhash.c +++ lib/ext2fs/dirhash.c @@ -13,6 +13,7 @@ #include #include +#include #include "ext2_fs.h" #include "ext2fs.h" --- lib/ext2fs/ext2fs.h +++ lib/ext2fs/ext2fs.h @@ -59,6 +59,7 @@ #endif #include +#include #include #include --- resize/resize2fs.h +++ resize/resize2fs.h @@ -21,9 +21,18 @@ #ifdef HAVE_SYS_TYPES_H #include #endif -#ifdef HAVE_SYS_TIME_H -#include + +#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# include +# endif #endif + #if HAVE_ERRNO_H #include #endif