summaryrefslogtreecommitdiffstats
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-18 17:33:24 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-18 17:33:24 +0000
commit304d6b19809cde7b5f38be0a5345cf37e798ef84 (patch)
treeb098080c111fc0c8ce28fc735a42867c5dd34090 /read.c
parentac4565b073a1683b51cb4a7865fc566167d259e6 (diff)
downloadmandoc-304d6b19809cde7b5f38be0a5345cf37e798ef84.tar.gz
merge revision 1.161: resolve trivial differences with OpenBSD
Diffstat (limited to 'read.c')
-rw-r--r--read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/read.c b/read.c
index dc66198d..c5bbd86e 100644
--- a/read.c
+++ b/read.c
@@ -32,7 +32,6 @@
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
-#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -605,13 +604,14 @@ static int
read_whole_file(struct mparse *curp, const char *file, int fd,
struct buf *fb, int *with_mmap)
{
+#if HAVE_MMAP
+ struct stat st;
+#endif
gzFile gz;
size_t off;
ssize_t ssz;
#if HAVE_MMAP
- struct stat st;
-
if (fstat(fd, &st) == -1)
err((int)MANDOCLEVEL_SYSERR, "%s", file);