This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix libjava bootstrap failure around IUCLC


This has been introduced by

  2012-03-16  Andrew John Hughes  <ahughes@redhat.com>

        * Makefile.am: Add natVMConsole.cc.
	:
        * java/io/VMConsole.h: Initial generation.
        * java/io/VMConsole.java: Copied from classpath/vm/reference.
        * java/io/natVMConsole.cc: Implemented readPassword.

where now bootstrap on FreeBSD, Darwin and possibly others is broken.

Tested on amd64-unknown-freebsd8.3.  Okay?

Gerald


2012-03-25  Gerald Pfeifer  <gerald@pfeifer.com>

        PR libgcj/52694
        * java/io/natVMConsole.cc (IUCLC): Define, if undefined.

Index: java/io/natVMConsole.cc
===================================================================
--- java/io/natVMConsole.cc	(revision 185766)
+++ java/io/natVMConsole.cc	(working copy)
@@ -19,6 +19,10 @@
 #include <java/io/Console.h>
 #include <java/io/VMConsole.h>
 
+#ifndef IUCLC
+#define IUCLC 0
+#endif
+
 #define TERMIOS_ECHO_IFLAGS (IUCLC|IXON|IXOFF|IXANY)
 #define TERMIOS_ECHO_LFLAGS (ECHO|ECHOE|ECHOK|ECHONL|TOSTOP)
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]