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> |
| 19 | |
| 20 | |
| 21 | Index: ncftp-3.2.6/configure |
| 22 | =================================================================== |
| 23 | --- ncftp-3.2.6.orig/configure |
| 24 | +++ ncftp-3.2.6/configure |
| 25 | @@ -7859,7 +7859,6 @@ chmod 755 "$wi_tmpdir/prpp.pl" |
| 26 | cat << 'EOF' > "$wi_tmpdir/unistd.c" |
| 27 | #include <confdefs.h> |
| 28 | |
| 29 | -#include <unistd.h> |
| 30 | #include <sys/types.h> |
| 31 | #include <sys/socket.h> |
| 32 | #include <netinet/in.h> |