aboutsummaryrefslogtreecommitdiff
path: root/gprof/gmon_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'gprof/gmon_io.c')
-rw-r--r--gprof/gmon_io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c
index 7e0a1a0..f2ac524 100644
--- a/gprof/gmon_io.c
+++ b/gprof/gmon_io.c
@@ -72,6 +72,9 @@ DEFUN (gmon_out_read, (filename), const char *filename)
if (strcmp (filename, "-") == 0)
{
ifp = stdin;
+#ifdef SET_BINARY
+ SET_BINARY (fileno (stdin));
+#endif
}
else
{