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.

66 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xmlrpc-c/xmlrpc-c-1.16.41-curl-headers.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. Fix to not include deprecated and unneeded curl headers
  17. a) curl/types.h
  18. The use of including <curl/types.h> was deprecated more than 7 years ago,
  19. and the header file was finally removed with the release of curl 7.21.7.
  20. Reference how upstream changed their own example code:
  21. https://github.com/bagder/curl/commit/ac28971aa61d28e5dd54888e34e958d1c742b461
  22. b) curl/easy.h and curl/multi.h
  23. both header files are included anyway when including curl/curl.h thus it
  24. is not really needed to include them explicitely
  25. --- a/lib/curl_transport/xmlrpc_curl_transport.c.orig 2012-05-12 20:31:25.439481606 +0200
  26. +++ b/lib/curl_transport/xmlrpc_curl_transport.c 2012-05-12 20:37:28.806931349 +0200
  27. @@ -83,9 +83,6 @@
  28. #include "xmlrpc-c/time_int.h"
  29. #include <curl/curl.h>
  30. -#include <curl/types.h>
  31. -#include <curl/easy.h>
  32. -#include <curl/multi.h>
  33. #include "lock.h"
  34. #include "lock_pthread.h"
  35. --- a/lib/curl_transport/curltransaction.c.orig 2012-05-12 20:38:58.849650689 +0200
  36. +++ b/lib/curl_transport/curltransaction.c 2012-05-12 20:42:28.326819943 +0200
  37. @@ -15,8 +15,6 @@
  38. #include "version.h"
  39. #include <curl/curl.h>
  40. -#include <curl/types.h>
  41. -#include <curl/easy.h>
  42. #include "curlversion.h"
  43. --- a/lib/curl_transport/curlmulti.c.orig 2012-05-12 20:42:56.422179313 +0200
  44. +++ b/lib/curl_transport/curlmulti.c 2012-05-12 20:43:09.567824771 +0200
  45. @@ -17,9 +17,6 @@
  46. #endif
  47. #include <curl/curl.h>
  48. -#include <curl/types.h>
  49. -#include <curl/easy.h>
  50. -#include <curl/multi.h>
  51. #include "mallocvar.h"
  52. #include "xmlrpc-c/util.h"