Declare innetgr() for HP-UX which is missing a declaration.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 13 Sep 2010 15:52:46 +0000 (11:52 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 13 Sep 2010 15:52:46 +0000 (11:52 -0400)
Declare domainname() for HP-UX and Solaris which are missing a declaration.

include/missing.h

index e5d82b1799e0cbecd68b65b8dcfe173a67e34c4b..56d5973d386b09edca101672d8cb6b0a6e78c0fd 100644 (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;