Declare innetgr() for HP-UX which is missing a declaration.

Declare domainname() for HP-UX and Solaris which are missing a declaration.
This commit is contained in:
Todd C. Miller
2010-09-13 11:52:46 -04:00
parent 77eb8cfe5b
commit da67324b11

View File

@@ -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;