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