Ticket #9524: 0001-Fix-cross-compiling-from-Linux-to-Windows-Closes-952.patch

File 0001-Fix-cross-compiling-from-Linux-to-Windows-Closes-952.patch, 864 bytes (added by erikd, 3 years ago)

Updated fix as suggested by @rwbarton

  • Main.hs

    From bd28f20d162638fc0ea2f2b9f493c5164a1466aa Mon Sep 17 00:00:00 2001
    From: Erik de Castro Lopo <erikd@mega-nerd.com>
    Date: Sun, 8 Feb 2015 12:59:54 +1100
    Subject: [PATCH] Fix cross-compiling from Linux to Windows (Closes: #9524).
    
    Remove include of "../../includes/ghcconfig.h" which should really
    only be a GHC-build-time include, not an include for building
    external tools like this.
    ---
     Main.hs | 4 ----
     1 file changed, 4 deletions(-)
    
    diff --git a/Main.hs b/Main.hs
    index afa192e..40e52dc 100644
    a b  
    99--
    1010-- See the documentation in the Users' Guide for more details.
    1111
    12 #if defined(__GLASGOW_HASKELL__) && !defined(BUILD_NHC)
    13 #include "../../includes/ghcconfig.h"
    14 #endif
    15 
    1612import Control.Monad            ( liftM, forM_ )
    1713import Data.List                ( isSuffixOf )
    1814import System.Console.GetOpt