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.

56 lines
1.5 KiB

  1. --- a/Curl.xs
  2. +++ b/Curl.xs
  3. @@ -70,7 +70,7 @@ typedef struct {
  4. typedef struct {
  5. -#ifdef __CURL_MULTI_H
  6. +#ifdef CURLINC_MULTI_H
  7. struct CURLM *curlm;
  8. #else
  9. struct void *curlm;
  10. @@ -234,7 +234,7 @@ static perl_curl_multi * perl_curl_multi
  11. {
  12. perl_curl_multi *self;
  13. Newz(1, self, 1, perl_curl_multi);
  14. -#ifdef __CURL_MULTI_H
  15. +#ifdef CURLINC_MULTI_H
  16. self->curlm=curl_multi_init();
  17. #else
  18. croak("curl version too old to support curl_multi_init()");
  19. @@ -245,7 +245,7 @@ static perl_curl_multi * perl_curl_multi
  20. /* delete the multi */
  21. static void perl_curl_multi_delete(perl_curl_multi *self)
  22. {
  23. -#ifdef __CURL_MULTI_H
  24. +#ifdef CURLINC_MULTI_H
  25. if (self->curlm)
  26. curl_multi_cleanup(self->curlm);
  27. Safefree(self);
  28. @@ -1065,7 +1065,7 @@ curl_multi_add_handle(curlm, curl)
  29. WWW::Curl::Multi curlm
  30. WWW::Curl::Easy curl
  31. CODE:
  32. -#ifdef __CURL_MULTI_H
  33. +#ifdef CURLINC_MULTI_H
  34. curl_multi_add_handle(curlm->curlm, curl->curl);
  35. #endif
  36. @@ -1074,7 +1074,7 @@ curl_multi_remove_handle(curlm, curl)
  37. WWW::Curl::Multi curlm
  38. WWW::Curl::Easy curl
  39. CODE:
  40. -#ifdef __CURL_MULTI_H
  41. +#ifdef CURLINC_MULTI_H
  42. curl_multi_remove_handle(curlm->curlm, curl->curl);
  43. #endif
  44. @@ -1149,7 +1149,7 @@ curl_multi_perform(self)
  45. PREINIT:
  46. int remaining;
  47. CODE:
  48. -#ifdef __CURL_MULTI_H
  49. +#ifdef CURLINC_MULTI_H
  50. while(CURLM_CALL_MULTI_PERFORM ==
  51. curl_multi_perform(self->curlm, &remaining));
  52. RETVAL = remaining;