1This 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> 19 20 21Index: 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> 33