summaryrefslogtreecommitdiff
path: root/content/fetchers
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-19 11:21:06 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-19 11:21:06 +0100
commit1bc010665e53bdf226370ab12a7ae3f87250df4d (patch)
tree66bfbef6f89d97613bf9e32e1617d11fb1bff4b3 /content/fetchers
parent4f38963337cfa6170249898d11d45b329b2c186d (diff)
downloadnetsurf-1bc010665e53bdf226370ab12a7ae3f87250df4d.tar.gz
netsurf-1bc010665e53bdf226370ab12a7ae3f87250df4d.tar.bz2
Reduce unecessary use of directory entry headers
The config header was causing many source files to unecessarily include the dirent headers causing extra dependancies. This has been fixed by providing a utility dirent header that provides a common API across all platforms while removing the unecessary dirent header usage.
Diffstat (limited to 'content/fetchers')
-rw-r--r--content/fetchers/about.c2
-rw-r--r--content/fetchers/file.c2
-rw-r--r--content/fetchers/resource.c3
3 files changed, 3 insertions, 4 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index eeea3d992..cf66a622b 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -37,7 +37,6 @@
#include <strings.h>
#include <time.h>
#include <stdio.h>
-#include <dirent.h>
#include <limits.h>
#include <stdarg.h>
@@ -46,6 +45,7 @@
#include "testament.h"
#include "utils/config.h"
+#include "utils/dirent.h"
#include "content/fetch.h"
#include "content/fetchers.h"
#include "content/fetchers/about.h"
diff --git a/content/fetchers/file.c b/content/fetchers/file.c
index c2f8bed2f..ff40386fe 100644
--- a/content/fetchers/file.c
+++ b/content/fetchers/file.c
@@ -36,7 +36,6 @@
#include <strings.h>
#include <time.h>
#include <stdio.h>
-#include <dirent.h>
#include <limits.h>
#include <stdarg.h>
@@ -46,6 +45,7 @@
#include <libwapcaplet/libwapcaplet.h>
+#include "utils/dirent.h"
#include "utils/corestrings.h"
#include "utils/nsoption.h"
#include "utils/errors.h"
diff --git a/content/fetchers/resource.c b/content/fetchers/resource.c
index 7a55b54ed..2db414d68 100644
--- a/content/fetchers/resource.c
+++ b/content/fetchers/resource.c
@@ -33,13 +33,12 @@
#include <strings.h>
#include <time.h>
#include <stdio.h>
-#include <dirent.h>
#include <limits.h>
#include <stdarg.h>
#include <libwapcaplet/libwapcaplet.h>
-#include "utils/config.h"
+#include "utils/dirent.h"
#include "utils/errors.h"
#include "utils/corestrings.h"
#include "utils/nsoption.h"