https://bugs.gentoo.org/580372 include sys/sysmacros.h for major/minor prototypes --- a/photosyst.c +++ b/photosyst.c @@ -164,6 +164,7 @@ #include #include #include +#include #include #include