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.

44 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch
  5. # Copyright (C) 2020 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 2ec258d6d31e2c0c614c5086acee84a87768a67c Mon Sep 17 00:00:00 2001
  17. From: Ariadne Conill <ariadne@dereferenced.org>
  18. Date: Fri, 21 Aug 2020 06:52:07 +0000
  19. Subject: [PATCH 10/30] Don't declare asprintf if defined as a macro.
  20. ---
  21. include/libiberty.h | 3 +++
  22. 1 file changed, 3 insertions(+)
  23. diff --git a/include/libiberty.h b/include/libiberty.h
  24. index 141cb886a85..fa0e78eb62f 100644
  25. --- a/include/libiberty.h
  26. +++ b/include/libiberty.h
  27. @@ -645,8 +645,11 @@ extern int pwait (int, int *, int);
  28. /* Like sprintf but provides a pointer to malloc'd storage, which must
  29. be freed by the caller. */
  30. +/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */
  31. +#ifndef asprintf
  32. extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2;
  33. #endif
  34. +#endif
  35. /* Like asprintf but allocates memory without fail. This works like
  36. xmalloc. */
  37. --
  38. 2.27.0