cc -O2 -pipe -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations dirent/posix_getdents.c -o dirent/posix_getdents -D_POSIX_C_SOURCE=202405L -lm -lpthread dirent/posix_getdents.c:5:44: error: use of undeclared identifier 'posix_getdents' ssize_t (*foo)(int, void *, size_t, int) = posix_getdents; ^ 1 error generated.