system/acl: FTBFS: tools/chacl.c:337:15: error: dereferencing pointer to incomplete type ‘struct dirent64’
Found on ppc64:
...
CC libmisc/walk_tree.lo
tools/chacl.c: In function ‘walk_dir’:
tools/chacl.c:335:14: warning: implicit declaration of function ‘readdir64’; did you mean ‘readdir_r’? [-Wimplicit-function-declaration]
while ((d = readdir64(dir)) != NULL) {
^~~~~~~~~
readdir_r
tools/chacl.c:335:12: warning: assignment to ‘struct dirent64 *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
while ((d = readdir64(dir)) != NULL) {
^
tools/chacl.c:337:15: error: dereferencing pointer to incomplete type ‘struct dirent64’
if (strcmp(d->d_name, ".") == 0 || strcmp(d->d_name, "..") == 0)
^~
make[1]: *** [Makefile:1337: tools/chacl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/usr/src/packages/system/acl/src/acl-2.3.1'
make: *** [Makefile:1942: all-recursive] Error 1
>>> ERROR: acl: build failed