Ticket #8366: 0001-Include-termios.h-for-solaris2-host.-Fixes-8366.patch

File 0001-Include-termios.h-for-solaris2-host.-Fixes-8366.patch, 837 bytes (added by leroux, 7 months ago)
  • System/Console/Haskeline/Backend/Posix.hsc

    From 05960e888726b961ebe9c00c439f5158a46c0532 Mon Sep 17 00:00:00 2001
    From: Muhaimin Ahsan <leroux@fezrev.com>
    Date: Thu, 26 Sep 2013 16:33:59 -0500
    Subject: [PATCH] Include termios.h for solaris2 host. (Fixes #8366)
    
    ---
     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 a028629..8ed9067 100644
    a b import GHC.IOBase(haFD,FD) 
    4848import GHC.Handle (withHandle_) 
    4949#endif 
    5050 
    51 #if defined(USE_TERMIOS_H) || defined(__ANDROID__) 
     51#if defined(USE_TERMIOS_H) || defined(__ANDROID__) || defined(solaris2_HOST_OS) 
    5252#include <termios.h> 
    5353#endif 
    5454#include <sys/ioctl.h>