acefc1588e
<sys/stat.h>. Thanks to Marco Atzeri for reporting the issue and providing an initial patch. This commit was SVN r28060.