Hey,

when trying to build ghc for android, I get this error in
libraries/haskeline/./System/Console/Haskeline/Backend/Posix.hsc

Posix.hsc: In function '_hsc2hs_test15':
Posix.hsc:75:39: error: invalid application of 'sizeof' to incomplete
type 'struct winsize'
Posix.hsc: In function '_hsc2hs_test19':
Posix.hsc:78:32: error: invalid use of undefined type 'struct winsize'
Posix.hsc: In function '_hsc2hs_test21':
Posix.hsc:79:32: error: invalid use of undefined type 'struct winsize'

looking at the android ndk header files, winsize is defined in termios.h.
If I try to include termios.h (by removing the ifdefs around it) I get
in libraries/haskeline/./System/Console/Haskeline/Backend/Posix.hsc

Posix.hsc: In function '_hsc2hs_test15':
Posix.hsc:78:20: error: storage size of 'test_array' isn't constant
Posix.hsc: In function '_hsc2hs_test17':
Posix.hsc:79:20: error: storage size of 'test_array' isn't constant

looking at the file, I have to admit I have no Idea what is going on.

Thanks!
Nathan

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to