]> granicus.if.org Git - sudo/commitdiff
Mac OS X has netgroup functions in netdb.h.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 6 Mar 2013 22:05:23 +0000 (17:05 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 6 Mar 2013 22:05:23 +0000 (17:05 -0500)
plugins/sudoers/match.c

index 94367526ce47c9ffdcbf7813a3b281208edde8ac..b602eb8103ea32cbc24a880e6c10f2266bbc67e8 100644 (file)
@@ -51,6 +51,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>