summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>2014-03-05 06:06:25 -0700
committerTodd C. Miller <Todd.Miller@courtesan.com>2014-03-05 06:06:25 -0700
commitf1accca8df92ba605dc080ea8f2d6366bf559f1d (patch)
treee8de8b76d11483af6da00ffb44672615a37ce41d
parent63d474730ce7cb1f8f4ef7f55dfa7f9fc63360fe (diff)
downloadsudo-f1accca8df92ba605dc080ea8f2d6366bf559f1d.tar.gz
Mac OS X has netgroup functions in netdb.h.
-rw-r--r--match.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/match.c b/match.c
index def756a9c..40b029a93 100644
--- a/match.c
+++ b/match.c
@@ -53,6 +53,8 @@
#endif /* HAVE_GLOB */
#ifdef HAVE_NETGROUP_H
# include <netgroup.h>
+#else
+# include <netdb.h>
#endif /* HAVE_NETGROUP_H */
#include <ctype.h>
#include <pwd.h>