From da67324b111735ccd6cb2c1f0d3de9a171e65e69 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 13 Sep 2010 11:52:46 -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. --- include/missing.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/missing.h b/include/missing.h index e5d82b179..56d5973d3 100644 --- a/include/missing.h +++ b/include/missing.h @@ -264,6 +264,17 @@ void setprogname(const char *); # endif #endif /* HAVE_SETEUID */ +/* + * 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;