diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-10-27 04:06:46 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-11-05 20:25:32 -0400 |
commit | 3645abac01b634b61b2ea2508ba67e88ef9ee219 (patch) | |
tree | 0274f7f1fdcb328e76a531a3ec25e357c5bc8188 /utils | |
parent | d96ce59dc86799f0cf07da2ce5a55b189a50c130 (diff) | |
download | haskell-3645abac01b634b61b2ea2508ba67e88ef9ee219.tar.gz |
Avoid GHC_STAGE and other include bits
We should strive to make our includes in terms of the RTS as much as
possible. One place there that is not possible, the llvm version, we
make a new tiny header
Stage numbers are somewhat arbitrary, if we simple need a newer RTS, we
should say so.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/iserv/cbits/iservmain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/iserv/cbits/iservmain.c b/utils/iserv/cbits/iservmain.c index d88d14e0d6..b182f9f549 100644 --- a/utils/iserv/cbits/iservmain.c +++ b/utils/iserv/cbits/iservmain.c @@ -1,4 +1,5 @@ -#if GHC_STAGE > 1 +#include <ghcversion.h> +#if MIN_VERSION_GLASGOW_HASKELL(9,3,0,0) # include <rts/PosixSource.h> #else // PosixSource.h not yet exposed, hacky inline for now. # include <ghcplatform.h> |