X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/e8e61026ee843cd18956b5932414c606fa85390c..13a468c1e025f5fbb958d0b9bb9e8f3ae1e680ed:/preconv.c diff --git a/preconv.c b/preconv.c index 7595887d..1df18b89 100644 --- a/preconv.c +++ b/preconv.c @@ -1,4 +1,4 @@ -/* $Id: preconv.c,v 1.6 2013/06/02 03:52:21 schwarze Exp $ */ +/* $Id: preconv.c,v 1.8 2014/08/16 19:00:01 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -14,11 +14,10 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif -#ifdef HAVE_MMAP +#include +#if HAVE_MMAP #include #include #endif @@ -245,7 +244,7 @@ read_whole_file(const char *f, int fd, size_t off; ssize_t ssz; -#ifdef HAVE_MMAP +#if HAVE_MMAP struct stat st; if (-1 == fstat(fd, &st)) { perror(f); @@ -509,7 +508,7 @@ main(int argc, char *argv[]) rc = EXIT_SUCCESS; out: -#ifdef HAVE_MMAP +#if HAVE_MMAP if (map) munmap(b.buf, b.sz); else