getresuid()
and seteuid()
are GNU extension function, add
#define _GNU_SOURCE
before including all the headers, or add -D_GNU_SOURCE
in GCC options.
You shouldn't define __USE_GNU
macro directly, it's supposed to be used only internally in glibc.