summaryrefslogtreecommitdiff
path: root/rts/eventlog/EventLogWriter.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/eventlog/EventLogWriter.c')
-rw-r--r--rts/eventlog/EventLogWriter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/eventlog/EventLogWriter.c b/rts/eventlog/EventLogWriter.c
index d8e5a44192..e6f560fc24 100644
--- a/rts/eventlog/EventLogWriter.c
+++ b/rts/eventlog/EventLogWriter.c
@@ -14,6 +14,7 @@
#include <string.h>
#include <stdio.h>
+#include <fs_rts.h>
#if defined(HAVE_SYS_TYPES_H)
#include <sys/types.h>
#endif
@@ -71,7 +72,7 @@ initEventLogFileWriter(void)
stgFree(prog);
/* Open event log file for writing. */
- if ((event_log_file = fopen(event_log_filename, "wb")) == NULL) {
+ if ((event_log_file = __rts_fopen(event_log_filename, "wb")) == NULL) {
sysErrorBelch(
"initEventLogFileWriter: can't open %s", event_log_filename);
stg_exit(EXIT_FAILURE);