X11-20201008-GCCcore-10.2.0_bsd.patch 799 B

12345678910111213141516171819202122232425262728
  1. --- X11/20201008/GCCcore-10.2.0/libXfont2-2.0.4/src/util/replace.h.orig 2019-09-14 20:41:35.000000000 +0200
  2. +++ X11/20201008/GCCcore-10.2.0/libXfont2-2.0.4/src/util/replace.h 2020-12-03 09:18:56.893607669 +0100
  3. @@ -30,25 +30,13 @@
  4. #endif
  5. #include <X11/Xfuncproto.h>
  6. -
  7. -#include <stdlib.h>
  8. -#if defined(HAVE_LIBBSD) && defined(HAVE_REALLOCARRAY)
  9. #include <bsd/stdlib.h> /* for reallocarray */
  10. -#endif
  11. -
  12. -#ifndef HAVE_REALLOCARRAY
  13. -extern _X_HIDDEN void *
  14. -reallocarray(void *optr, size_t nmemb, size_t size);
  15. -#endif
  16. #ifndef mallocarray
  17. #define mallocarray(n, s) reallocarray(NULL, n, s)
  18. #endif
  19. -#include <string.h>
  20. -#if defined(HAVE_LIBBSD) && defined(HAVE_STRLCPY)
  21. #include <bsd/string.h> /* for strlcpy, strlcat */
  22. -#endif
  23. #ifndef HAVE_STRLCPY
  24. extern _X_HIDDEN size_t