diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-04-19 11:21:06 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-04-19 11:21:06 +0100 |
commit | 1bc010665e53bdf226370ab12a7ae3f87250df4d (patch) | |
tree | 66bfbef6f89d97613bf9e32e1617d11fb1bff4b3 /utils/filename.c | |
parent | 4f38963337cfa6170249898d11d45b329b2c186d (diff) | |
download | netsurf-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 'utils/filename.c')
-rw-r--r-- | utils/filename.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/filename.c b/utils/filename.c index 19ee03968..9c95901a1 100644 --- a/utils/filename.c +++ b/utils/filename.c @@ -24,7 +24,6 @@ #include <assert.h> #include <sys/types.h> -#include <dirent.h> #include <stdbool.h> #include <string.h> #include <stdio.h> @@ -33,7 +32,7 @@ #include <sys/stat.h> #include <unistd.h> -#include "utils/config.h" +#include "utils/dirent.h" #include "utils/filename.h" #include "utils/log.h" #include "utils/utils.h" |