projects
/
sudo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77eb8cf
)
Declare innetgr() for HP-UX which is missing a declaration.
author
Todd C. Miller
<Todd.Miller@courtesan.com>
Mon, 13 Sep 2010 15:52:46 +0000
(11:52 -0400)
committer
Todd 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
patch
|
blob
|
history
diff --git
a/include/missing.h
b/include/missing.h
index e5d82b1799e0cbecd68b65b8dcfe173a67e34c4b..56d5973d386b09edca101672d8cb6b0a6e78c0fd 100644
(file)
--- 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;