aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/gjavah.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r--gcc/java/gjavah.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index ca38b9e..98d2035 100644
--- a/gcc/java/gjavah.c
+++ b/gcc/java/gjavah.c
@@ -2388,6 +2388,11 @@ main (int argc, char** argv)
int emit_dependencies = 0, suppress_output = 0;
int opt;
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
gcc_init_libintl ();
if (argc <= 1)