summaryrefslogtreecommitdiffstats
path: root/preconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'preconv.c')
-rw-r--r--preconv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/preconv.c b/preconv.c
index 91d7a21f..64ed5686 100644
--- a/preconv.c
+++ b/preconv.c
@@ -17,7 +17,7 @@
#include "config.h"
#include <sys/types.h>
-#ifdef HAVE_MMAP
+#if HAVE_MMAP
#include <sys/stat.h>
#include <sys/mman.h>
#endif
@@ -244,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);
@@ -508,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