hschooks.c: Ensure correct header file is included
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 29 Nov 2016 21:50:04 +0000 (16:50 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 29 Nov 2016 21:50:05 +0000 (16:50 -0500)
commit795f8bd460d604c792a5df8cfec937b2a74c3956
tree26f34e103a7769c7a98aeea41b6bf1d8a5a86832
parentfe3748bc8631afb9a7cd1a74340783eee7c495f6
hschooks.c: Ensure correct header file is included

Consider the case of building a stage1 compiler. `hschooks.c` will be
built by stage0 `ghc` and linked against the `stage0` RTS. Despite this
it was #including the stage1 `Rts.h`. There is, of course, no guarantee
that this is ABI-compatible with the stage0 RTS and when they diverge
Bad Things happen (e.g. bells ringing at inappropriate times in D2699).

Test Plan: Validate

Reviewers: simonmar, austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2763
ghc/hschooks.c