diff -ur b/portage-utils-0.9/libq/compat.c a/portage-utils-0.9/libq/compat.c --- a/portage-utils-0.9/libq/compat.c +++ b/portage-utils-0.9/libq/compat.c @@ -56,3 +56,7 @@ #ifndef O_CLOEXEC # define O_CLOEXEC 0 #endif + +#ifndef S_BLKSIZE +# define S_BLKSIZE 512 +#endif