diff -r edc7e45b466a -r e2558d4b246c lftp/lftp.patch --- a/lftp/lftp.patch Fri Aug 03 16:55:16 2012 +0200 +++ b/lftp/lftp.patch Fri Aug 03 16:56:40 2012 +0200 @@ -30,3 +30,19 @@ #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@