From 2efdc9cd579bc1f392eb9060a9e9d07ef02d8be6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 13 Sep 2010 11:53:01 -0400 Subject: [PATCH] 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 --- missing.h | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; -- 2.40.0