diff options
author | Ashish Gupta <ashmew2@gmail.com> | 2017-04-13 23:36:26 +0200 |
---|---|---|
committer | Ashish Gupta <ashmew2@gmail.com> | 2017-10-25 22:04:54 +0200 |
commit | 7fb4c9e101f8477217ce9d818835bab5cc30f484 (patch) | |
tree | b67b07aec1771eec2a602c82ddd53c62e2d6c5e9 /content | |
parent | a618be2a69a347128a4e29c879abf4a913421f52 (diff) | |
download | netsurf-7fb4c9e101f8477217ce9d818835bab5cc30f484.tar.gz netsurf-7fb4c9e101f8477217ce9d818835bab5cc30f484.tar.bz2 |
Step 2 : Abuse _TARGET_IS_KOLIBRIOS and build with make TARGET=kolibrios
Diffstat (limited to 'content')
-rw-r--r-- | content/fetch.c | 4 | ||||
-rw-r--r-- | content/fetchers/file.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/content/fetch.c b/content/fetch.c index 766502941..37b28106b 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -54,7 +54,11 @@ #include "content/fetchers.h" #include "content/fetchers/resource.h" #include "content/fetchers/about.h" +#if defined(_TARGET_IS_KOLIBRIOS) +#include "content/fetchers/http_kolibri.h" +#else #include "content/fetchers/curl.h" +#endif #include "content/fetchers/data.h" #include "content/fetchers/file.h" #include "javascript/fetcher.h" diff --git a/content/fetchers/file.c b/content/fetchers/file.c index 4fa1a2138..067d9be50 100644 --- a/content/fetchers/file.c +++ b/content/fetchers/file.c @@ -656,7 +656,13 @@ static void fetch_file_process_dir(struct fetch_file_context *ctx, int i; /* directory entry index */ int n; /* number of directory entries */ +#ifndef _TARGET_IS_KOLIBRIOS n = scandir(ctx->path, &listing, 0, dir_sort_alpha); +#else + /* Don't have scandir yet */ + n = 1; +#endif + if (n < 0) { fetch_file_process_error(ctx, fetch_file_errno_to_http_code(errno)); |