From 8ea393efa6b1eca07ddb64300edb61fe6ff70722 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 4 Jul 2012 16:35:43 +0200 Subject: [PATCH] lftp: make this build with glibc-2.16. --- srcpkgs/lftp/patches/glibc-2.16.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 srcpkgs/lftp/patches/glibc-2.16.patch diff --git a/srcpkgs/lftp/patches/glibc-2.16.patch b/srcpkgs/lftp/patches/glibc-2.16.patch new file mode 100644 index 0000000000..0620af05fc --- /dev/null +++ b/srcpkgs/lftp/patches/glibc-2.16.patch @@ -0,0 +1,12 @@ +--- lib/stdio.in.h.orig 2012-07-04 16:33:38.435152864 +0200 ++++ lib/stdio.in.h 2012-07-04 16:33:55.468744741 +0200 +@@ -703,9 +703,6 @@ _GL_WARN_ON_USE (getline, "getline is un + so any use of gets warrants an unconditional warning; besides, C11 + removed it. */ + #undef gets +-#if HAVE_RAW_DECL_GETS +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +-#endif + + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@