Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | This patch is needed to avoid double definitions of functions |
| 2 | especially when building with security flags turned on. The double |
| 3 | definitions causes the sed.sh script in configure to fail since it |
| 4 | starts to spit out double outputs e.g. |
| 5 | |
| 6 | wi_cv_gethostname_size_t size_t size_t |
| 7 | |
| 8 | which then caused almost all subsequent compile time tests to fail since |
| 9 | this gets into confdefs.h file |
| 10 | |
| 11 | removing this include causes only one definitions to be emitted into |
| 12 | the genrated protos.h file and thus avoiding the above failure. |
| 13 | |
| 14 | Other solution would to fix sed.sh to ignore double definitions |
| 15 | |
| 16 | Upstream-Status: Pending |
| 17 | |
| 18 | Signed-of-by: Khem Raj <raj.khem@gmail.com> |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 19 | --- a/autoconf_local/aclocal.m4 |
| 20 | +++ b/autoconf_local/aclocal.m4 |
| 21 | @@ -4220,7 +4220,6 @@ changequote({{, }})dnl |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 22 | cat << 'EOF' > "$wi_tmpdir/unistd.c" |
| 23 | #include <confdefs.h> |
| 24 | |
| 25 | -#include <unistd.h> |
| 26 | #include <sys/types.h> |
| 27 | #include <sys/socket.h> |
| 28 | #include <netinet/in.h> |