OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../lftp/lftp-4.4.0-glibc-2.16-no-gets.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 6c925916dce3505dab1385e14dbed2d7b9f727e4 Mon Sep 17 00:00:00 2001
  17. From: Christian Wiese <chris@opensde.org>
  18. Date: Tue, 23 Oct 2012 10:47:52 +0200
  19. Subject: [PATCH] fixed to build with glibc >= 2.16 where 'gets' is not defined in the gnulib anymore
  20. ---
  21. lib/stdio.in.h | 2 ++
  22. 1 files changed, 2 insertions(+), 0 deletions(-)
  23. diff --git a/lib/stdio.in.h b/lib/stdio.in.h
  24. index b1b543d..2d62f24 100644
  25. --- a/lib/stdio.in.h
  26. +++ b/lib/stdio.in.h
  27. @@ -702,10 +702,12 @@ _GL_WARN_ON_USE (getline, "getline is unportable - "
  28. /* It is very rare that the developer ever has full control of stdin,
  29. so any use of gets warrants an unconditional warning; besides, C11
  30. removed it. */
  31. +#if defined gets
  32. #undef gets
  33. #if HAVE_RAW_DECL_GETS
  34. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  35. #endif
  36. +#endif // if defined gets
  37. #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
  38. --
  39. 1.7.2.3