Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/gmon.c')
-rw-r--r--winsup/cygwin/gmon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/gmon.c b/winsup/cygwin/gmon.c
index 6187a7c8f..e07d62221 100644
--- a/winsup/cygwin/gmon.c
+++ b/winsup/cygwin/gmon.c
@@ -200,7 +200,10 @@ _mcleanup()
proffile = "gmon.out";
}
#else
- proffile = "gmon.out";
+ {
+ char gmon_out[] = "gmon.out";
+ proffile = gmon_out;
+ }
#endif
fd = open(proffile , O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, 0666);