Created
February 11, 2014 20:39
-
-
Save simonwelsh/8943628 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hphp/runtime/ext/curl/ext_curl.cpp b/hphp/runtime/ext/curl/ext_curl.cpp | |
index 5de9a03..bbcac07 100644 | |
--- a/hphp/runtime/ext/curl/ext_curl.cpp | |
+++ b/hphp/runtime/ext/curl/ext_curl.cpp | |
@@ -1296,10 +1296,12 @@ static void hphp_curl_multi_select(CURLM *mh, int timeout_ms, int *ret) { | |
#ifndef HAVE_CURL_MULTI_SELECT | |
# ifdef HAVE_CURL_MULTI_WAIT | |
-# define curl_multi_select(mh, tm, ret) curl_multi_wait((mh), nullptr, 0, (tm), (ret)) | |
+# define curl_multi_select_func(mh, tm, ret) curl_multi_wait((mh), nullptr, 0, (tm), (ret)) | |
# else | |
-# define curl_multi_select hphp_curl_multi_select | |
+# define curl_multi_select_func hphp_curl_multi_select | |
# endif | |
+#else | |
+#define curl_multi_select_func curl_multi_select | |
#endif | |
Variant HHVM_FUNCTION(curl_multi_select, CResRef mh, | |
@@ -1308,7 +1310,7 @@ Variant HHVM_FUNCTION(curl_multi_select, CResRef mh, | |
int ret; | |
unsigned long timeout_ms = (unsigned long)(timeout * 1000.0); | |
IOStatusHelper io("curl_multi_select"); | |
- curl_multi_select(curlm->get(), timeout_ms, &ret); | |
+ curl_multi_select_func(curlm->get(), timeout_ms, &ret); | |
return ret; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment