michael@466: Index: src/lftp_tinfo.cc michael@466: --- src/lftp_tinfo.cc.orig 2008-11-27 06:56:39 +0100 michael@466: +++ src/lftp_tinfo.cc 2009-09-13 21:09:13 +0200 michael@466: @@ -23,20 +23,20 @@ michael@466: #include michael@466: michael@466: extern "C" { michael@466: -#if defined(HAVE_CURSES_H) michael@466: -# include michael@466: -# if defined(HAVE_TERM_H) michael@466: -# include michael@466: -# elif defined(HAVE_NCURSES_TERM_H) michael@466: -# include michael@466: -# endif michael@466: -#elif defined(HAVE_NCURSES_CURSES_H) michael@466: +#if defined(HAVE_NCURSES_CURSES_H) michael@466: # include michael@466: # if defined(HAVE_NCURSES_TERM_H) michael@466: # include michael@466: # elif defined(HAVE_TERM_H) michael@466: # include michael@466: # endif michael@466: +#elif defined(HAVE_CURSES_H) michael@466: +# include michael@466: +# if defined(HAVE_TERM_H) michael@466: +# include michael@466: +# elif defined(HAVE_NCURSES_TERM_H) michael@466: +# include michael@466: +# endif michael@466: #elif defined(HAVE_TERMCAP_H) michael@466: # include michael@466: #endif michael@467: Index: lib/stdio.in.h michael@467: --- lib/stdio.in.h.orig 2012-07-03 15:29:29.000000000 +0200 michael@467: +++ lib/stdio.in.h 2012-08-03 14:31:28.929658700 +0200 michael@467: @@ -704,8 +704,12 @@ michael@467: removed it. */ michael@467: #undef gets michael@467: #if HAVE_RAW_DECL_GETS michael@467: +#ifdef __cplusplus michael@467: +_GL_WARN_ON_USE (std::gets, "gets is a security hole - use fgets instead"); michael@467: +#else michael@467: _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); michael@467: #endif michael@467: +#endif michael@467: michael@467: michael@467: #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@