diff --git a/amiga/file.c b/amiga/file.c index 24c1fd902..b73dd1676 100644 --- a/amiga/file.c +++ b/amiga/file.c @@ -31,6 +31,7 @@ #include "desktop/browser_private.h" #include "utils/nsoption.h" +#include "utils/file.h" #include "desktop/save_complete.h" #include "desktop/save_pdf/pdf_plotters.h" #include "desktop/save_text.h" diff --git a/amiga/gui.c b/amiga/gui.c index b7edf5e1e..19064f938 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -915,7 +915,7 @@ static void gui_init2(int argc, char** argv) if(!temp_homepage_url) { nsurl *temp_url; if (netsurf_path_to_nsurl(fullpath, &temp_url) == NSERROR_OK) { - temp_homepage_url = strdup(nsurl_data(temp_url)); + temp_homepage_url = strdup(nsurl_access(temp_url)); nsurl_unref(temp_url); } }