cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations unistd/setresuid.c -o unistd/setresuid -D_POSIX_C_SOURCE=202405L -lm -lpthread -liconv unistd/setresuid.c:11:35: error: use of undeclared identifier 'setresuid'; did you mean 'setreuid'? int (*foo)(uid_t, uid_t, uid_t) = setresuid; ^~~~~~~~~ setreuid /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:595:6: note: 'setreuid' declared here int setreuid(uid_t, uid_t) __DARWIN_ALIAS(setreuid); ^ unistd/setresuid.c:11:7: error: incompatible function pointer types initializing 'int (*)(uid_t, uid_t, uid_t)' (aka 'int (*)(unsigned int, unsigned int, unsigned int)') with an expression of type 'int (uid_t, uid_t)' (aka 'int (unsigned int, unsigned int)') [-Werror,-Wincompatible-function-pointer-types] int (*foo)(uid_t, uid_t, uid_t) = setresuid; ^ ~~~~~~~~~ 2 errors generated.