diff options
author | Karel Gardas <karel.gardas@centrum.cz> | 2015-11-08 00:21:36 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-11-08 00:54:05 +0100 |
commit | 2b7d9c2b96eb9da3cce7826df4a91c3426095528 (patch) | |
tree | 1bed51043baba94ed0c8ffaa29d9c1474bde261c /rts/RtsSymbols.c | |
parent | 0e40c01db99680902fda4b7a84d7f15a92502730 (diff) | |
download | haskell-2b7d9c2b96eb9da3cce7826df4a91c3426095528.tar.gz |
Add OpenBSD specific RTS symbols
This patch adds OpenBSD specific RTS symbols. The patch is taken from
the OpenBSD ports tree, provided by the OpenBSD community.
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1445
Diffstat (limited to 'rts/RtsSymbols.c')
-rw-r--r-- | rts/RtsSymbols.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c index 0d15140d88..709c5bfca2 100644 --- a/rts/RtsSymbols.c +++ b/rts/RtsSymbols.c @@ -444,6 +444,13 @@ #define RTS_DARWIN_ONLY_SYMBOLS #endif +#if defined(openbsd_HOST_OS) +#define RTS_OPENBSD_ONLY_SYMBOLS \ + SymE_NeedsProto(__guard_local) +#else +#define RTS_OPENBSD_ONLY_SYMBOLS +#endif + #ifndef SMP # define MAIN_CAP_SYM SymI_HasProto(MainCapability) #else @@ -1076,6 +1083,7 @@ RTS_RET_SYMBOLS RTS_POSIX_ONLY_SYMBOLS RTS_MINGW_ONLY_SYMBOLS RTS_DARWIN_ONLY_SYMBOLS +RTS_OPENBSD_ONLY_SYMBOLS RTS_LIBGCC_SYMBOLS RTS_LIBFFI_SYMBOLS #undef SymI_NeedsProto @@ -1113,6 +1121,7 @@ RtsSymbolVal rtsSyms[] = { RTS_POSIX_ONLY_SYMBOLS RTS_MINGW_ONLY_SYMBOLS RTS_DARWIN_ONLY_SYMBOLS + RTS_OPENBSD_ONLY_SYMBOLS RTS_LIBGCC_SYMBOLS RTS_LIBFFI_SYMBOLS #if defined(darwin_HOST_OS) && defined(i386_HOST_ARCH) |