cc -pthread -Wall -Wextra -Werror=implicit-function-declaration dirent/posix_getdents.c -o dirent/posix_getdents -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lcrypt -latomic dirent/posix_getdents.c: In function ‘main’: dirent/posix_getdents.c:20:30: error: invalid application of ‘sizeof’ to incomplete type ‘struct posix_dent’ 20 | size_t size = sizeof(struct posix_dent) + name_max + 1; | ^~~~~~ dirent/posix_getdents.c:26:31: error: implicit declaration of function ‘posix_getdents’ [-Wimplicit-function-declaration] 26 | while ( 0 < (amount = posix_getdents(fd, buffer, size, 0)) ) | ^~~~~~~~~~~~~~ dirent/posix_getdents.c:32:43: error: invalid use of undefined type ‘struct posix_dent’ 32 | if ( !strcmp(entry->d_name, "dirent") ) | ^~ dirent/posix_getdents.c:34:40: error: invalid use of undefined type ‘struct posix_dent’ 34 | offset += entry->d_reclen; | ^~