Skip to content

Instantly share code, notes, and snippets.

@jdenoy
Created February 10, 2020 15:06
Show Gist options
  • Save jdenoy/1708d9dcecdb3f671c91810ba9ea1c08 to your computer and use it in GitHub Desktop.
Save jdenoy/1708d9dcecdb3f671c91810ba9ea1c08 to your computer and use it in GitHub Desktop.
--- common.h
+++ ../common.h
@@ -179,10 +179,10 @@
/* following lines are copy from unistd.h in Linux for avoidance warnings in compilation */
#if defined(HAVE_SETRESGID) && !defined(_GNU_SOURCE)
-extern int setresgid (__uid_t __ruid, __uid_t __euid, __uid_t __suid);
+extern int setresgid (uid_t __ruid, uid_t __euid, uid_t __suid);
#endif
#if defined(HAVE_SETRESUID) && !defined(_GNU_SOURCE)
-extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid);
+extern int setresuid (uid_t __ruid, uid_t __euid, uid_t __suid);
#endif
#if defined (HAVE_DECL_HTONLL) && !defined (HAVE_DECL_HTOBE64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment