mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-27 17:55:29 +01:00
issue 336 - Look for libcurl-gnutls in addition to libcurl.so. Patch by Karl Tomlinson <karlt@mozbugz.karlt.net>, r=me
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@435 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
b1f271a4ec
commit
3b9b206b5f
1 changed files with 7 additions and 0 deletions
|
|
@ -69,8 +69,15 @@ bool HTTPUpload::SendRequest(const string &url,
|
|||
|
||||
void *curl_lib = dlopen("libcurl.so", RTLD_NOW);
|
||||
if (!curl_lib) {
|
||||
if (error_description != NULL)
|
||||
*error_description = dlerror();
|
||||
curl_lib = dlopen("libcurl.so.4", RTLD_NOW);
|
||||
}
|
||||
if (!curl_lib) {
|
||||
// Debian gives libcurl a different name when it is built against GnuTLS
|
||||
// instead of OpenSSL.
|
||||
curl_lib = dlopen("libcurl-gnutls.so.4", RTLD_NOW);
|
||||
}
|
||||
if (!curl_lib) {
|
||||
curl_lib = dlopen("libcurl.so.3", RTLD_NOW);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue