[commit: packages/haskeline] ghc-head: Include termios.h on Android because winsize is defined in it. (5b600ef)

git at git.haskell.org git at git.haskell.org
Sat Aug 31 10:43:15 CEST 2013


Repository : ssh://git@git.haskell.org/haskeline

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/haskeline.git;a=commit;h=5b600ef93db9b475afa2ef9edb242b6e3a915b50

>---------------------------------------------------------------

commit 5b600ef93db9b475afa2ef9edb242b6e3a915b50
Author: Judah Jacobson <judah.jacobson at gmail.com>
Date:   Tue Jan 29 14:39:42 2013 +0000

    Include termios.h on Android because winsize is defined in it.
    
    Patch from Nathan Hüsken.


>---------------------------------------------------------------

5b600ef93db9b475afa2ef9edb242b6e3a915b50
 System/Console/Haskeline/Backend/Posix.hsc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/System/Console/Haskeline/Backend/Posix.hsc b/System/Console/Haskeline/Backend/Posix.hsc
index db9c66e..5da38e7 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>





More information about the ghc-commits mailing list