[gtk+] Remove declarations for getresuid()/getresgid()



commit fc9826fb41b7739fff91eb880da670abb26efb1a
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Oct 15 21:35:10 2016 +0100

    Remove declarations for getresuid()/getresgid()
    
    Back in 2001, their prototypes were missing from system headers, but
    since glibc 2.3.2 they are defined in unistd.h if _GNU_SOURCE is
    defined.

 gtk/gtkmain.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 9e2a6df..20e2cea 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -361,11 +361,6 @@ check_setugid (void)
   gid_t rgid, egid, sgid; /* Real, effective and saved group ID's */
   
 #ifdef HAVE_GETRESUID
-  /* These aren't in the header files, so we prototype them here.
-   */
-  int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
-  int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
-
   if (getresuid (&ruid, &euid, &suid) != 0 ||
       getresgid (&rgid, &egid, &sgid) != 0)
 #endif /* HAVE_GETRESUID */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]