From: Todd C. Miller Date: Mon, 13 Sep 2010 15:53:01 +0000 (-0400) Subject: Declare innetgr() for HP-UX which is missing a declaration. X-Git-Tag: SUDO_1_7_5~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2efdc9cd579bc1f392eb9060a9e9d07ef02d8be6;p=sudo Declare innetgr() for HP-UX which is missing a declaration. Declare domainname() for HP-UX and Solaris which are missing a declaration. --HG-- branch : 1.7 --- diff --git a/missing.h b/missing.h index 7ce41238c..e60678cae 100644 --- a/missing.h +++ b/missing.h @@ -316,6 +316,17 @@ const char *getprogname __P((void)); # define WCOREDUMP(x) ((x) & 0x80) #endif +/* + * HP-UX does not declare innetgr() or getdomainname(). + * Solaris does not declare getdomainname(). + */ +#if defined(__hpux) +int innetgr(const char *, const char *, const char *, const char *); +#endif +#if defined(__hpux) || defined(__sun) +int getdomainname(char *, size_t); +#endif + /* Functions "missing" from libc. */ struct timeval;