Commit a24ab444 authored by Zejun Wu's avatar Zejun Wu Committed by Ben Gamari

Remove redundant include of Rts.h in EventLogWriter.h

`EventLogWriter.h` doesn't use anything from `Rts.h`, the include is
redundant. This include is ignored when we include

Rts.h -> RtsAPI.h -> rts/EventLogWriter.h -> Rts.h

but can can cause problem when we include `RtsApi.h` directly with
errors like

In file included from /usr/lib/ghc-8.6.2/include/RtsAPI.h:20:
In file included from
In file included from /usr/lib/ghc-8.6.2/include/Rts.h:185:
/usr/lib/ghc-8.6.2/include/rts/storage/GC.h:187:29: error: unknown type
name 'Capability'
StgPtr  allocate          ( Capability *cap, W_ n );

Test Plan: ./validate

Reviewers: simonmar, bgamari, afarmer, erikd, alexbiehl

Reviewed By: bgamari, alexbiehl

Subscribers: rwbarton, carter

Differential Revision:
parent f2bad7e1
......@@ -4,6 +4,11 @@
* Support for fast binary event logging.
* Do not #include this file directly: #include "Rts.h" instead.
* To understand the structure of the RTS headers, see the wiki:
* ---------------------------------------------------------------------------*/
#pragma once
......@@ -11,8 +16,6 @@
#include <stddef.h>
#include <stdbool.h>
#include "Rts.h"
* Abstraction for writing eventlog data.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment