fetchurl: updated to newest genode libc

This commit is contained in:
Boris Mulder
2017-07-27 14:23:18 +02:00
committed by Norman Feske
parent 471ef85202
commit 2e44104873

View File

@@ -66,7 +66,7 @@ int progress_callback(void *clientp,
return CURLE_OK;
}
void Libc::Component::construct(Genode::Env &env)
void Libc::Component::construct(Libc::Env &env)
{
Genode::Attached_rom_dataspace config(env, "config");
@@ -142,7 +142,9 @@ void Libc::Component::construct(Genode::Env &env)
curl_easy_setopt(curl, CURLOPT_PROXY, proxy.string());
} catch (...) { }
res = curl_easy_perform(curl);
Libc::with_libc([&]() {
res = curl_easy_perform(curl);
});
close(fd);
if (res != CURLE_OK)
Genode::error(curl_easy_strerror(res));