From: Johannes W. <ja...@mo...> - 2011-05-05 15:20:06
|
--- browser.c | 2 ++ browser.h | 1 - cache.c | 1 + file.h | 4 ++-- job.c | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/browser.c b/browser.c index d715b63..71edfbd 100644 --- a/browser.c +++ b/browser.c @@ -24,6 +24,7 @@ #include "file.h" #include "misc.h" #include "options.h" +#include "uchar.h" #include <sys/types.h> #include <sys/stat.h> @@ -31,6 +32,7 @@ #include <dirent.h> #include <string.h> #include <errno.h> +#include <sys/mman.h> struct window *browser_win; struct searchable *browser_searchable; diff --git a/browser.h b/browser.h index 261b13b..833c9de 100644 --- a/browser.h +++ b/browser.h @@ -22,7 +22,6 @@ #include "list.h" #include "window.h" #include "search.h" -#include "uchar.h" struct browser_entry { struct list_head node; diff --git a/cache.c b/cache.c index 3a1e608..b334cc6 100644 --- a/cache.c +++ b/cache.c @@ -33,6 +33,7 @@ #include <unistd.h> #include <fcntl.h> #include <errno.h> +#include <sys/mman.h> #define CACHE_64_BIT 0x01 #define CACHE_BE 0x02 diff --git a/file.h b/file.h index 174c3ef..665eb64 100644 --- a/file.h +++ b/file.h @@ -19,8 +19,8 @@ #ifndef _FILE_H #define _FILE_H -#include <unistd.h> -#include <sys/mman.h> +#include <stddef.h> /* size_t */ +#include <sys/types.h> /* ssize_t */ ssize_t read_all(int fd, void *buf, size_t count); ssize_t write_all(int fd, const void *buf, size_t count); diff --git a/job.c b/job.c index 802b626..d10e391 100644 --- a/job.c +++ b/job.c @@ -33,6 +33,7 @@ #include <string.h> #include <unistd.h> #include <errno.h> +#include <sys/mman.h> static struct track_info *ti_buffer[32]; static int ti_buffer_fill; -- 1.7.5 |