summaryrefslogtreecommitdiff
path: root/rts/LinkerInternals.h
diff options
context:
space:
mode:
authorViktor Dukhovni <ietf-dane@dukhovni.org>2021-04-27 13:33:26 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-04-30 23:21:34 -0400
commitc0c0b4e0d3112a9ee294d1c3b7849b68b0bebfc8 (patch)
treed6f10c95623fe5fa4aaadd06ce4ba52ddf8d14f1 /rts/LinkerInternals.h
parent2d2985a79eec3d6ae9aee96b264c97c2b158f196 (diff)
downloadhaskell-c0c0b4e0d3112a9ee294d1c3b7849b68b0bebfc8.tar.gz
Tighten scope of non-POSIX visibility macros
The __BSD_VISIBLE and _DARWIN_C_SOURCE macros expose non-POSIX prototypes in system header files. We should scope these to just the ".c" modules that actually need them, and avoid defining them in header files used in other C modules.
Diffstat (limited to 'rts/LinkerInternals.h')
-rw-r--r--rts/LinkerInternals.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h
index e1da899c89..167a14202d 100644
--- a/rts/LinkerInternals.h
+++ b/rts/LinkerInternals.h
@@ -13,11 +13,6 @@
#include "linker/M32Alloc.h"
#if RTS_LINKER_USE_MMAP
-#if defined(ios_HOST_OS) || defined(darwin_HOST_OS)
-/* Inclusion of system headers usually requires _DARWIN_C_SOURCE on Mac OS X
- * because of some specific defines like MMAP_ANON, MMAP_ANONYMOUS. */
-#define _DARWIN_C_SOURCE 1
-#endif
#include <sys/mman.h>
#endif