projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More rules for bootstrapping
[ghc-hetmet.git]
/
rts
/
RtsMessages.c
diff --git
a/rts/RtsMessages.c
b/rts/RtsMessages.c
index
362b369
..
c263a2c
100644
(file)
--- a/
rts/RtsMessages.c
+++ b/
rts/RtsMessages.c
@@
-239,7
+239,12
@@
rtsSysErrorMsgFn(const char *s, va_list ap)
}
vfprintf(stderr, s, ap);
if (syserr) {
}
vfprintf(stderr, s, ap);
if (syserr) {
+#if defined(cygwin32_HOST_OS) || defined (mingw32_HOST_OS)
+ // Win32 error messages have a terminating \n
+ fprintf(stderr, ": %s", syserr);
+#else
fprintf(stderr, ": %s\n", syserr);
fprintf(stderr, ": %s\n", syserr);
+#endif
} else {
fprintf(stderr, "\n");
}
} else {
fprintf(stderr, "\n");
}