diff options
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |