diff options
author | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2021-04-27 13:33:26 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-04-30 23:21:34 -0400 |
commit | c0c0b4e0d3112a9ee294d1c3b7849b68b0bebfc8 (patch) | |
tree | d6f10c95623fe5fa4aaadd06ce4ba52ddf8d14f1 /includes/Rts.h | |
parent | 2d2985a79eec3d6ae9aee96b264c97c2b158f196 (diff) | |
download | haskell-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 'includes/Rts.h')
-rw-r--r-- | includes/Rts.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/includes/Rts.h b/includes/Rts.h index e7fb8561f6..0f96ba2eca 100644 --- a/includes/Rts.h +++ b/includes/Rts.h @@ -29,12 +29,6 @@ extern "C" { #include <windows.h> #endif -#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 - #if !defined(IN_STG_CODE) #define IN_STG_CODE 0 #endif |