File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ Implementation
9090` lovr-http ` uses system-provided HTTP libraries:
9191
9292- Windows uses wininet.
93- - Linux uses curl (must be installed , but most systems have it).
93+ - Linux uses curl (must install e.g. ` libcurl4 ` package , but most systems have it).
9494- Android uses Java's HttpURLConnection via JNI.
9595- macOS uses NSURLSession.
9696
Original file line number Diff line number Diff line change @@ -500,7 +500,8 @@ static struct {
500500static void * library ;
501501
502502static void http_init (void ) {
503- library = dlopen ("libcurl.so" , RTLD_LAZY );
503+ library = dlopen ("libcurl.so.4" , RTLD_LAZY );
504+ if (!library ) library = dlopen ("libcurl.so" , RTLD_LAZY );
504505
505506 if (library ) {
506507 FN_FOREACH (FN_LOAD )
You can’t perform that action at this time.
0 commit comments