generic-poky/meta/packages/portmap/files/no-libwrap.patch

27 lines
784 B
Diff

--- Makefile~ 2004-06-03 11:19:23.000000000 +0100
+++ Makefile 2004-06-03 11:24:53.000000000 +0100
@@ -15,9 +15,9 @@
# no access control tables. The local system, since it runs the portmap
# daemon, is always treated as an authorized host.
-HOSTS_ACCESS= -DHOSTS_ACCESS
+#HOSTS_ACCESS= -DHOSTS_ACCESS
#WRAP_LIB = $(WRAP_DIR)/libwrap.a
-WRAP_LIB = -lwrap
+#WRAP_LIB = -lwrap
# Comment out if your RPC library does not allocate privileged ports for
# requests from processes with root privilege, or the new portmap will
--- pmap_check.c~ 2004-06-03 11:24:20.000000000 +0100
+++ pmap_check.c 2004-06-03 11:24:33.000000000 +0100
@@ -48,7 +48,9 @@
#endif
#include <sys/types.h>
#include <unistd.h>
+#ifdef HOSTS_ACCESS
#include <tcpd.h>
+#endif
extern char *inet_ntoa();