clang -O2 -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations dirent/scandir.c -o dirent/scandir -D_POSIX_C_SOURCE=202405L -lm -lintl dirent/scandir.c:5:136: error: use of undeclared identifier 'scandir' int (*foo)(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **)) = scandir; ^ 1 error generated.