[PATCH] Include termios.h on android because winsize is defined in it

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Include termios.h on android because winsize is defined in it

Nathan Hüsken
---
 System/Console/Haskeline/Backend/Posix.hsc |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/System/Console/Haskeline/Backend/Posix.hsc b/System/Console/Haskeline/Backend/Posix.hsc
index db9c66e..74bba7a 100644
--- a/System/Console/Haskeline/Backend/Posix.hsc
+++ b/System/Console/Haskeline/Backend/Posix.hsc
@@ -48,7 +48,7 @@ import GHC.IOBase(haFD,FD)
 import GHC.Handle (withHandle_)
 #endif
 
-#ifdef USE_TERMIOS_H
+#if defined(USE_TERMIOS_H) || defined(__ANDROID__)
 #include <termios.h>
 #endif
 #include <sys/ioctl.h>
@@ -64,7 +64,6 @@ ehOut = eH . hOut
 
 -------------------
 -- Window size
-
 foreign import ccall ioctl :: FD -> CULong -> Ptr a -> IO CInt
 
 posixLayouts :: Handles -> [IO (Maybe Layout)]
--
1.7.10.4


--------------080501070806030805000004--