diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-07-23 05:11:59 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-08-09 15:11:58 -0400 |
commit | fc350dba63da7eefbaa2793fe9fe99f8571b75c0 (patch) | |
tree | a607a0c9ddc2d051cc282d29a9285fbb8aa347e3 /rts/posix/OSThreads.c | |
parent | db7098fe7aa3f7324d146821334b774032ea87bd (diff) | |
download | haskell-fc350dba63da7eefbaa2793fe9fe99f8571b75c0.tar.gz |
Make `PosixSource.h` installed and under `rts/`
is used outside of the rts so we do this rather than just fish it out of
the repo in ad-hoc way, in order to make packages in this repo more
self-contained.
Diffstat (limited to 'rts/posix/OSThreads.c')
-rw-r--r-- | rts/posix/OSThreads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c index b05d5cbd03..862e6007a6 100644 --- a/rts/posix/OSThreads.c +++ b/rts/posix/OSThreads.c @@ -7,9 +7,9 @@ * * --------------------------------------------------------------------------*/ -#include "PosixSource.h" +#include "rts/PosixSource.h" -/* We've defined _POSIX_SOURCE via "PosixSource.h", and yet still use +/* We've defined _POSIX_SOURCE via "rts/PosixSource.h", and yet still use some non-POSIX features. With _POSIX_SOURCE defined, visibility of non-POSIX extension prototypes requires _DARWIN_C_SOURCE on Mac OS X, __BSD_VISIBLE on FreeBSD and DragonflyBSD, and _NETBSD_SOURCE on @@ -19,7 +19,7 @@ system headers are included via "Rts.h". An alternative approach could be to write portable wrappers or stubs for all - the non-posix functions in a C-module that does not include "PosixSource.h", + the non-posix functions in a C-module that does not include "rts/PosixSource.h", and then use only POSIX features and the portable wrapper functions in all other C-modules. */ #include "ghcconfig.h" |