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. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../dietlibc/patches/pkg_curl.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE 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. # --- T2-COPYRIGHT-NOTE-END ---
  16. A little dirty hacking in order to get the code built with dietlibc ...
  17. - Rene Rebe <rene@exactcode.de>
  18. --- ./lib/inet_ntop.c.orig 2006-01-09 14:18:32.000000000 +0100
  19. +++ ./lib/inet_ntop.c 2006-03-27 02:20:34.000000000 +0200
  20. @@ -70,6 +70,7 @@
  21. * - uses no statics
  22. * - takes a unsigned char* not an in_addr as input
  23. */
  24. +#define HAVE_INET_NTOA_R_2_ARGS
  25. static char *inet_ntop4 (const unsigned char *src, char *dst, size_t size)
  26. {
  27. #if defined(HAVE_INET_NTOA_R_2_ARGS)
  28. --- curl-7.15.1/lib/strerror.c 2005-12-02 23:09:09.000000000 +0000
  29. +++ curl-7.15.1-fixed/lib/strerror.c 2006-01-01 01:14:26.000000000 +0000
  30. @@ -22,12 +22,6 @@
  31. #include "setup.h"
  32. -#ifdef HAVE_STRERROR_R
  33. -#if !defined(HAVE_POSIX_STRERROR_R) && !defined(HAVE_GLIBC_STRERROR_R)
  34. -#error "you MUST have either POSIX or glibc strerror_r if strerror_r is found"
  35. -#endif /* !POSIX && !glibc */
  36. -#endif /* HAVE_STRERROR_R */
  37. -
  38. #include <curl/curl.h>
  39. #include <stdlib.h>
  40. #include <string.h>