From 2e44104873311ee4f4e97034055d758783711556 Mon Sep 17 00:00:00 2001 From: Boris Mulder Date: Thu, 27 Jul 2017 14:23:18 +0200 Subject: [PATCH] fetchurl: updated to newest genode libc --- src/app/fetchurl/component.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/fetchurl/component.cc b/src/app/fetchurl/component.cc index 400db5d..7860ef0 100644 --- a/src/app/fetchurl/component.cc +++ b/src/app/fetchurl/component.cc @@ -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));