summaryrefslogtreecommitdiff
path: root/package/portmap/patches/patch-pmap_check_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/portmap/patches/patch-pmap_check_c')
-rw-r--r--package/portmap/patches/patch-pmap_check_c16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/portmap/patches/patch-pmap_check_c b/package/portmap/patches/patch-pmap_check_c
new file mode 100644
index 000000000..9dc7cd67f
--- /dev/null
+++ b/package/portmap/patches/patch-pmap_check_c
@@ -0,0 +1,16 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+
+* do not include tcpd.h, when hosts access disabled
+
+--- portmap_6.0.orig/pmap_check.c 2007-05-11 05:02:10.000000000 +0200
++++ portmap_6.0/pmap_check.c 2009-04-24 12:26:06.041879543 +0200
+@@ -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>
+