diff -r f6c0237e8f1c -r 9d74c60eb90e lftp/lftp.patch --- a/lftp/lftp.patch Fri Aug 31 21:14:33 2012 +0200 +++ b/lftp/lftp.patch Sat Sep 01 12:17:10 2012 +0200 @@ -30,19 +30,3 @@ #elif defined(HAVE_TERMCAP_H) # include #endif -Index: lib/stdio.in.h ---- lib/stdio.in.h.orig 2012-07-03 15:29:29.000000000 +0200 -+++ lib/stdio.in.h 2012-08-03 14:31:28.929658700 +0200 -@@ -704,8 +704,12 @@ - removed it. */ - #undef gets - #if HAVE_RAW_DECL_GETS -+#ifdef __cplusplus -+_GL_WARN_ON_USE (std::gets, "gets is a security hole - use fgets instead"); -+#else - _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); - #endif -+#endif - - - #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@