[GHC] #2342: timer problem under Sparc Solaris for Release Candidate ghc-6.8.2.20080603

GHC trac at galois.com
Thu Jun 5 07:49:43 EDT 2008


#2342: timer problem under Sparc Solaris for Release Candidate ghc-6.8.2.20080603
--------------------------+-------------------------------------------------
 Reporter:  maeder        |          Owner:         
     Type:  bug           |         Status:  new    
 Priority:  high          |      Milestone:  6.8.3  
Component:  Build System  |        Version:  6.8.2  
 Severity:  normal        |     Resolution:         
 Keywords:                |     Difficulty:  Unknown
 Testcase:                |   Architecture:  sparc  
       Os:  Solaris       |  
--------------------------+-------------------------------------------------
Comment (by igloo):

 OK, I think that this patch should get `_XPG4_2` defined, and thus make
 `struct timeval` be defined:
 {{{
 diff -rN -u old-ghc/includes/Stg.h new-ghc/includes/Stg.h
 --- old-ghc/includes/Stg.h      2008-06-03 21:59:00.000000000 +0100
 +++ new-ghc/includes/Stg.h      2008-06-03 21:59:00.000000000 +0100
 @@ -49,7 +49,7 @@

  // And finally, we need _XOPEN_SOURCE in order to get a prototype for
  // putenv on Linux:
 -#define _XOPEN_SOURCE
 +#define _XOPEN_SOURCE 600

  #endif
 }}}
 Can you give it a whirl please?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2342#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list