From 419d3c7562892e7e636632a499e20ad602a651bc Mon Sep 17 00:00:00 2001 From: turret Date: Mon, 18 Dec 2023 22:17:07 -0600 Subject: init: global init curl while not multithreaded --- init/init.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'init/init.c') diff --git a/init/init.c b/init/init.c index 806792f..fa0e32f 100644 --- a/init/init.c +++ b/init/init.c @@ -5,6 +5,8 @@ #include #include +#include + #include #include #include @@ -86,6 +88,10 @@ int main(void) strcpy(token, "Authorization: Bot "); strcat(token, token_base); + /* init curl */ + if(curl_global_init(CURL_GLOBAL_DEFAULT)) + panic("init: curl init failed"); + /* Rest of the program.. */ do_initcalls(); -- cgit v1.2.3