blob: 22e4f7837b2d81199597c582d87274e90a3db76f [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001This patch is needed to avoid double definitions of functions
2especially when building with security flags turned on. The double
3definitions causes the sed.sh script in configure to fail since it
4starts to spit out double outputs e.g.
5
6wi_cv_gethostname_size_t size_t size_t
7
8which then caused almost all subsequent compile time tests to fail since
9this gets into confdefs.h file
10
11removing this include causes only one definitions to be emitted into
12the genrated protos.h file and thus avoiding the above failure.
13
14Other solution would to fix sed.sh to ignore double definitions
15
16Upstream-Status: Pending
17
18Signed-of-by: Khem Raj <raj.khem@gmail.com>
Patrick Williams92b42cb2022-09-03 06:53:57 -050019--- a/autoconf_local/aclocal.m4
20+++ b/autoconf_local/aclocal.m4
21@@ -4220,7 +4220,6 @@ changequote({{, }})dnl
Brad Bishopd7bf8c12018-02-25 22:55:05 -050022 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>