summaryrefslogtreecommitdiff
path: root/content/fetchers
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-04-13 23:36:26 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-06-10 08:25:29 +0200
commit6fed24e8948c1acaaeae002b9ee7ee44a7e2e0a5 (patch)
tree313901d40813d40f94fc5898f782ff55c82df26d /content/fetchers
parent6fd280bb5b27842a0ef2977798566c37bd4e1d0e (diff)
downloadnetsurf-6fed24e8948c1acaaeae002b9ee7ee44a7e2e0a5.tar.gz
netsurf-6fed24e8948c1acaaeae002b9ee7ee44a7e2e0a5.tar.bz2
Step 2 : Abuse _TARGET_IS_KOLIBRIOS and build with make TARGET=kolibrios
Diffstat (limited to 'content/fetchers')
-rw-r--r--content/fetchers/file.c6
1 files changed, 6 insertions, 0 deletions
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));