[xiph-commits] r13495 - icecast/trunk/icecast/src
karl at svn.xiph.org
karl at svn.xiph.org
Thu Aug 9 05:24:33 PDT 2007
Author: karl
Date: 2007-08-09 05:24:33 -0700 (Thu, 09 Aug 2007)
New Revision: 13495
Modified:
icecast/trunk/icecast/src/auth_url.c
Log:
build fix with libcurl 7.16 onwards
Modified: icecast/trunk/icecast/src/auth_url.c
===================================================================
--- icecast/trunk/icecast/src/auth_url.c 2007-08-09 11:13:38 UTC (rev 13494)
+++ icecast/trunk/icecast/src/auth_url.c 2007-08-09 12:24:33 UTC (rev 13495)
@@ -112,12 +112,14 @@
}
+#ifdef CURLOPT_PASSWDFUNCTION
/* make sure that prompting at the console does not occur */
static int my_getpass(void *client, char *prompt, char *buffer, int buflen)
{
buffer[0] = '\0';
return 0;
}
+#endif
static int handle_returned_header (void *ptr, size_t size, size_t nmemb, void *stream)
@@ -518,7 +520,9 @@
curl_easy_setopt (url_info->handle, CURLOPT_WRITEDATA, url_info->handle);
curl_easy_setopt (url_info->handle, CURLOPT_NOSIGNAL, 1L);
curl_easy_setopt (url_info->handle, CURLOPT_TIMEOUT, 15L);
+#ifdef CURLOPT_PASSWDFUNCTION
curl_easy_setopt (url_info->handle, CURLOPT_PASSWDFUNCTION, my_getpass);
+#endif
curl_easy_setopt (url_info->handle, CURLOPT_ERRORBUFFER, &url_info->errormsg[0]);
if (url_info->username && url_info->password)
More information about the commits
mailing list