]> git.neil.brown.name Git - portmap.git/commitdiff
fix building with tcpd support disabled
authorMike Frysinger <vapier@gentoo.org>
Sun, 13 May 2007 21:17:32 +0000 (17:17 -0400)
committerNeil Brown <neilb@suse.de>
Sun, 13 May 2007 23:25:13 +0000 (09:25 +1000)
Make sure pmap_check.c only includes tcpd.h when HOSTS_ACCESS is defined.

Signed-off-by: Timothy Redaelli <drizzt@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Neil Brown <neilb@suse.de>
pmap_check.c

index 84f2c12bc3d057081eb2bee6f5be1f00e74e7f5e..443a82291985cdb2c899f3314bca34970db4302d 100644 (file)
@@ -44,7 +44,9 @@
 #include <netinet/in.h>
 #include <rpc/rpcent.h>
 #endif
+#ifdef HOSTS_ACCESS
 #include <tcpd.h>
+#endif
 #include <arpa/inet.h>
 #include <grp.h>