Hi It seems that adding '#include <bits/fcntl>' to src/cache.c might solve this issue, though I didn't test in a clean chroot if there are other issues...
Cheers Luk -- Luk Claes - http://people.debian.org/~luk - GPG key 1024D/9B7C328D Fingerprint: D5AF 25FB 316B 53BB 08E7 F999 E544 DE07 9B7C 328D
signature.asc
Description: OpenPGP digital signature