Replace `#if HAVE_SYS_MMAN_H` with `#ifdef HAVE_SYS_MMAN_H`. Using the
former causes problems is HAVE_SYS_MMAN_H is defined without a value.
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
-#if HAVE_SYS_MMAN_H
+#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#ifdef _MSC_VER
static void ps_freeimage(usershape_t *us)
{
-#if HAVE_SYS_MMAN_H
+#ifdef HAVE_SYS_MMAN_H
munmap(us->data, us->datasize);
#else
free(us->data);
case FT_EPS:
fstat(fd, &statbuf);
us->datasize = statbuf.st_size;
-#if HAVE_SYS_MMAN_H
+#ifdef HAVE_SYS_MMAN_H
us->data = mmap(0, statbuf.st_size, PROT_READ, MAP_SHARED, fd, 0);
#else
us->data = malloc(statbuf.st_size);