https://bugs.gentoo.org/580056 --- a/libfs/devices.c +++ b/libfs/devices.c @@ -30,6 +30,10 @@ #include #include +#if HAVE_SYS_SYSMACROS_H +#include +#endif + #ifdef HAVE_SYS_MOUNT_H #ifdef HAVE_SYS_PARAM_H #include