summaryrefslogtreecommitdiffstats
path: root/meta/packages/portmap/files/no-libwrap.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/portmap/files/no-libwrap.patch')
-rw-r--r--meta/packages/portmap/files/no-libwrap.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/packages/portmap/files/no-libwrap.patch b/meta/packages/portmap/files/no-libwrap.patch
new file mode 100644
index 0000000000..751200bf12
--- /dev/null
+++ b/meta/packages/portmap/files/no-libwrap.patch
@@ -0,0 +1,26 @@
1--- Makefile~ 2004-06-03 11:19:23.000000000 +0100
2+++ Makefile 2004-06-03 11:24:53.000000000 +0100
3@@ -15,9 +15,9 @@
4 # no access control tables. The local system, since it runs the portmap
5 # daemon, is always treated as an authorized host.
6
7-HOSTS_ACCESS= -DHOSTS_ACCESS
8+#HOSTS_ACCESS= -DHOSTS_ACCESS
9 #WRAP_LIB = $(WRAP_DIR)/libwrap.a
10-WRAP_LIB = -lwrap
11+#WRAP_LIB = -lwrap
12
13 # Comment out if your RPC library does not allocate privileged ports for
14 # requests from processes with root privilege, or the new portmap will
15--- pmap_check.c~ 2004-06-03 11:24:20.000000000 +0100
16+++ pmap_check.c 2004-06-03 11:24:33.000000000 +0100
17@@ -48,7 +48,9 @@
18 #endif
19 #include <sys/types.h>
20 #include <unistd.h>
21+#ifdef HOSTS_ACCESS
22 #include <tcpd.h>
23+#endif
24
25 extern char *inet_ntoa();
26