Add Haskell types for C types useconds_t and suseconds_t, which are respectively...
authorWilliam Knop <william.knop.nospam@gmail.com>
Tue, 5 Apr 2011 00:24:36 +0000 (20:24 -0400)
committerAdam Megacz <megacz@cs.berkeley.edu>
Mon, 20 Jun 2011 02:04:26 +0000 (19:04 -0700)
commit24617fc54416bdb7ec77c63d868a9de7a9ae313b
treef731489bb592cb6f7fe86875d7febbc3c2410029
parentf339b08cbf4c79a33b850c1279779e06b4013dfc
Add Haskell types for C types useconds_t and suseconds_t, which are respectively CUSeconds and CSUSeconds.

The tv_usec field of struct timeval was incorrectly used as C type time_t; the actual C type is suseconds_t. On OS X, time_t is longer than suseconds_t, which caused garbage bits to be copied as reported in trac #4247 and #4970. This patch is part 1 of 4 to fix those tickets.
Foreign/C/Types.hs
configure.ac