diff options
author | Oleksiy Obitotskyy <oobitots@cisco.com> | 2018-03-23 07:40:58 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-28 12:09:51 +0100 |
commit | e9f8571df41ba174ec6033f8560a45bef0c9d749 (patch) | |
tree | cc855cdc806ffb650be319b123d30dc0ab73b828 /meta/recipes-extended/tcp-wrappers | |
parent | 42716486fad22c14aedcc293a0345e58f658c1f1 (diff) | |
download | poky-e9f8571df41ba174ec6033f8560a45bef0c9d749.tar.gz |
tcp-wrappers: Fix build with clang
Fix non-void function 'fix_options' should return a value.
Add function prototype to tcpd.c and miscd.c.
(From OE-Core rev: 01590c04e875968a7137a67d1683c503a6bad396)
Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/tcp-wrappers')
-rw-r--r-- | meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Fix-build-with-clang.patch | 65 | ||||
-rw-r--r-- | meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb | 1 |
2 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Fix-build-with-clang.patch b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Fix-build-with-clang.patch new file mode 100644 index 0000000000..9d1e05d7f4 --- /dev/null +++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/0001-Fix-build-with-clang.patch | |||
@@ -0,0 +1,65 @@ | |||
1 | From 7f8878ac1aaf4a19992d39379797c151301bedb1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Oleksiy Obitotskyy <oobitots@cisco.com> | ||
3 | Date: Mon, 5 Feb 2018 08:29:10 -0800 | ||
4 | Subject: [PATCH] Fix build with clang | ||
5 | |||
6 | Fix "error: non-void function 'fix_options' should return a value". | ||
7 | Add function prototype to tcpd.c and miscd.c. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> | ||
12 | --- | ||
13 | v2 - add function prototypes | ||
14 | |||
15 | fix_options.c | 2 +- | ||
16 | miscd.c | 4 ++++ | ||
17 | tcpd.c | 4 ++++ | ||
18 | 3 files changed, 9 insertions(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/fix_options.c b/fix_options.c | ||
21 | index b5e81b8..9958ff4 100644 | ||
22 | --- a/fix_options.c | ||
23 | +++ b/fix_options.c | ||
24 | @@ -29,7 +29,7 @@ static char sccsid[] = "@(#) fix_options.c 1.6 97/04/08 02:29:19"; | ||
25 | |||
26 | /* fix_options - get rid of IP-level socket options */ | ||
27 | |||
28 | -fix_options(request) | ||
29 | +void fix_options(request) | ||
30 | struct request_info *request; | ||
31 | { | ||
32 | #ifdef IP_OPTIONS | ||
33 | diff --git a/miscd.c b/miscd.c | ||
34 | index 1ab835c..723b83a 100644 | ||
35 | --- a/miscd.c | ||
36 | +++ b/miscd.c | ||
37 | @@ -40,6 +40,10 @@ static char sccsid[] = "@(#) miscd.c 1.10 96/02/11 17:01:30"; | ||
38 | #include "patchlevel.h" | ||
39 | #include "tcpd.h" | ||
40 | |||
41 | +#ifdef KILL_IP_OPTIONS | ||
42 | +void fix_options(struct request_info *); | ||
43 | +#endif | ||
44 | + | ||
45 | int allow_severity = SEVERITY; /* run-time adjustable */ | ||
46 | int deny_severity = LOG_WARNING; /* ditto */ | ||
47 | |||
48 | diff --git a/tcpd.c b/tcpd.c | ||
49 | index d865b9c..a179891 100644 | ||
50 | --- a/tcpd.c | ||
51 | +++ b/tcpd.c | ||
52 | @@ -38,6 +38,10 @@ static char sccsid[] = "@(#) tcpd.c 1.10 96/02/11 17:01:32"; | ||
53 | #include "patchlevel.h" | ||
54 | #include "tcpd.h" | ||
55 | |||
56 | +#ifdef KILL_IP_OPTIONS | ||
57 | +void fix_options(struct request_info *); | ||
58 | +#endif | ||
59 | + | ||
60 | int allow_severity = SEVERITY; /* run-time adjustable */ | ||
61 | int deny_severity = LOG_WARNING; /* ditto */ | ||
62 | |||
63 | -- | ||
64 | 2.10.3.dirty | ||
65 | |||
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 1effef149b..3ece8c3012 100644 --- a/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb +++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb | |||
@@ -45,6 +45,7 @@ SRC_URI = "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_${PV}.tar.gz \ | |||
45 | file://safe_finger.8 \ | 45 | file://safe_finger.8 \ |
46 | file://makefile-fix-parallel.patch \ | 46 | file://makefile-fix-parallel.patch \ |
47 | file://musl-decls.patch \ | 47 | file://musl-decls.patch \ |
48 | file://0001-Fix-build-with-clang.patch \ | ||
48 | " | 49 | " |
49 | 50 | ||
50 | SRC_URI[md5sum] = "e6fa25f71226d090f34de3f6b122fb5a" | 51 | SRC_URI[md5sum] = "e6fa25f71226d090f34de3f6b122fb5a" |