dicej / android-libcore64

fork of https://android.googlesource.com/platform/libcore to make it 64-bit safe
2 stars 5 forks source link

termios error #6

Open PerfectCarl opened 10 years ago

PerfectCarl commented 10 years ago

Hello,

I'm trying to build luni on windows and I get error in java_io_console.java regarding termios.

C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libcore\luni\src\main\native\java_io_Console.cpp:
37:5: error:
      unknown type name 'termios'
    termios state;
    ^
C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libcore\luni\src\main\native\java_io_Console.cpp:
38:61: error:
      invalid operands to binary expression ('void' and 'int')
    if (TEMP_FAILURE_RETRY(tcgetattr(STDIN_FILENO, &state)) == -1) {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libcore\luni\src\main\native\java_io_Console.cpp:
46:28: error:
      use of undeclared identifier 'ECHO'
        state.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
                           ^
C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libcore\luni\src\main\native\java_io_Console.cpp:
46:35: error:
      use of undeclared identifier 'ECHOE'
        state.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
                                  ^
C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libcore\luni\src\main\native\java_io_Console.cpp:
46:43: error:
      use of undeclared identifier 'ECHOK'
        state.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
                                          ^
C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libcore\luni\src\main\native\java_io_Console.cpp:
46:51: error:
      use of undeclared identifier 'ECHONL'
        state.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
                                                  ^
C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libcore\luni\src\main\native\java_io_Console.cpp:
48:52: error:
      use of undeclared identifier 'TCSAFLUSH'
    if (TEMP_FAILURE_RETRY(tcsetattr(STDIN_FILENO, TCSAFLUSH, &state)) == -1){
                                                   ^
C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libnativehelper\include\nativehelper\JNIHelp.h:20
0:13: note:
      expanded from macro 'TEMP_FAILURE_RETRY'
    typeof (exp) _rc;                      \
            ^
C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libcore\luni\src\main\native\java_io_Console.cpp:
48:52: error:
      use of undeclared identifier 'TCSAFLUSH'
C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libnativehelper\include\nativehelper\JNIHelp.h:20
2:16: note:
      expanded from macro 'TEMP_FAILURE_RETRY'
        _rc = (exp);                       \
               ^
C:\Users\cran\Dropbox\docs\projects\github\robovm\robovm\vm\rt\android\libcore\luni\src\main\native\java_io_Console.cpp:
48:72: error:
      invalid operands to binary expression ('void' and 'int')
    if (TEMP_FAILURE_RETRY(tcsetattr(STDIN_FILENO, TCSAFLUSH, &state)) == -1){
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~

Any idea how to fix that ?