summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Fix-implicit-function-declaration-warnings.patch9
-rw-r--r--meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb2
2 files changed, 7 insertions, 4 deletions
diff --git a/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Fix-implicit-function-declaration-warnings.patch b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Fix-implicit-function-declaration-warnings.patch
index ec793ac8ff..474703885d 100644
--- a/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Fix-implicit-function-declaration-warnings.patch
+++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Fix-implicit-function-declaration-warnings.patch
@@ -20,11 +20,16 @@ diff --git a/hosts_access.c b/hosts_access.c
20index 0133e5e..58697ea 100644 20index 0133e5e..58697ea 100644
21--- a/hosts_access.c 21--- a/hosts_access.c
22+++ b/hosts_access.c 22+++ b/hosts_access.c
23@@ -33,6 +33,7 @@ static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22"; 23@@ -33,6 +33,12 @@ static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22";
24 #endif 24 #endif
25 #include <netinet/in.h> 25 #include <netinet/in.h>
26 #include <arpa/inet.h> 26 #include <arpa/inet.h>
27+#include <rpcsvc/ypclnt.h> 27+#ifdef USE_GETDOMAIN
28+/* defined in workarounds.c */
29+extern int yp_get_default_domain(char **ptr);
30+#else
31+# include <rpcsvc/ypclnt.h>
32+#endif /* USE_GETDOMAIN */
28 #include <stdio.h> 33 #include <stdio.h>
29 #include <stdlib.h> 34 #include <stdlib.h>
30 #include <syslog.h> 35 #include <syslog.h>
diff --git a/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb b/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb
index c655da1199..bcd1d6f792 100644
--- a/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb
+++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb
@@ -7,8 +7,6 @@ SECTION = "console/network"
7LICENSE = "BSD-1-Clause" 7LICENSE = "BSD-1-Clause"
8LIC_FILES_CHKSUM = "file://DISCLAIMER;md5=071bd69cb78b18888ea5e3da5c3127fa" 8LIC_FILES_CHKSUM = "file://DISCLAIMER;md5=071bd69cb78b18888ea5e3da5c3127fa"
9 9
10DEPENDS += "libnsl2"
11
12PACKAGES = "${PN}-dbg libwrap libwrap-doc libwrap-dev libwrap-staticdev ${PN} ${PN}-doc" 10PACKAGES = "${PN}-dbg libwrap libwrap-doc libwrap-dev libwrap-staticdev ${PN} ${PN}-doc"
13FILES:libwrap = "${base_libdir}/lib*${SOLIBS}" 11FILES:libwrap = "${base_libdir}/lib*${SOLIBS}"
14FILES:libwrap-doc = "${mandir}/man3 ${mandir}/man5" 12FILES:libwrap-doc = "${mandir}/man3 ${mandir}/man5"