chiark / gitweb /
Cheer up linux compiler
authorRichard Kettlewell <rjk@greenend.org.uk>
Mon, 7 Jun 2010 21:18:32 +0000 (22:18 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Mon, 7 Jun 2010 21:18:32 +0000 (22:18 +0100)
lib/hreader.c

index 177aa93..edb1d83 100644 (file)
 /** @file lib/hreader.c
  * @brief Hands-off reader - read files without keeping them open
  */
+#include <config.h>
 #include "hreader.h"
 #include "mem.h"
 #include <string.h>
 #include <fcntl.h>
 #include <sys/stat.h>
 #include <errno.h>
+#include <unistd.h>
 
 static int hreader_fill(struct hreader *h, off_t offset);