diff --git a/lib/ext2fs/ismounted.c b/lib/ext2fs/ismounted.c index 6c6ecff0..6e682ad9 100644 --- a/lib/ext2fs/ismounted.c +++ b/lib/ext2fs/ismounted.c @@ -9,6 +9,14 @@ * %End-Header% */ +/* define BSD_SOURCE to make sure we get the major() macro */ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif +#ifndef _DEFAULT_SOURCE +#define _DEFAULT_SOURCE /* since glibc 2.20 _SVID_SOURCE is deprecated */ +#endif + #include "config.h" #include #if HAVE_UNISTD_H @@ -38,6 +46,9 @@ #endif /* HAVE_GETMNTINFO */ #include #include +#if HAVE_SYS_TYPES_H +#include +#endif #include "ext2_fs.h" #include "ext2fs.h"