summaryrefslogtreecommitdiff
path: root/rts/linker/M32Alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'rts/linker/M32Alloc.h')
-rw-r--r--rts/linker/M32Alloc.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/rts/linker/M32Alloc.h b/rts/linker/M32Alloc.h
index 892588082f..8a349a3b3e 100644
--- a/rts/linker/M32Alloc.h
+++ b/rts/linker/M32Alloc.h
@@ -8,19 +8,17 @@
#pragma once
-#if RTS_LINKER_USE_MMAP == 1
-#include <fcntl.h>
-#include <sys/mman.h>
-
-#if defined(HAVE_UNISTD_H)
-#include <unistd.h>
-#endif
-
+/*
+ * We use the m32 allocator for symbol extras on Windows and other mmap-using
+ * platforms.
+ */
+#if RTS_LINKER_USE_MMAP
+#define NEED_M32 1
#endif
#include "BeginPrivate.h"
-#if RTS_LINKER_USE_MMAP
+#if defined(NEED_M32)
#define M32_NO_RETURN /* Nothing */
#else
#define M32_NO_RETURN GNUC3_ATTRIBUTE(__noreturn__)