#4970: time002 and time004 (ghci) test failures on OS X 64 bit
------------------------------------------+---------------------------------
  Reporter:  gwright                      |          Owner:  igloo         
      Type:  bug                          |         Status:  new           
  Priority:  high                         |      Milestone:  7.2.1         
 Component:  GHCi                         |        Version:  7.0.1         
Resolution:                               |       Keywords:                
  Testcase:                               |      Blockedby:                
Difficulty:                               |             Os:  MacOS X       
  Blocking:                               |   Architecture:  x86_64 (amd64)
   Failure:  Incorrect result at runtime  |  
------------------------------------------+---------------------------------

Comment(by gwright):

 Replying to [comment:9 igloo]:
 > It looks like the right thing to do is to define a Haskell type for the
 C `suseconds_t`, and use that. At least,
 http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/time.h.html
 and my Linux `gettimeofday(2)` agree on that.

 That should work on OS X as well, since `__darwin_suseconds_t` is a
 typedef for `suseconds_t` (defined in `/usr/include/sys/types.h`);
 `__darwin_suseconds_t` is the type of the `tv_usec` field in `struct
 timeval`.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to