Add a C wrapper for gettimeofday
authorIan Lynagh <igloo@earth.li>
Fri, 25 Nov 2011 17:31:45 +0000 (17:31 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 25 Nov 2011 17:59:26 +0000 (17:59 +0000)
commitdfca290a74ae88f79968c1f0ad7734ea834f6777
treea8ad5d191799eeaaabe7dcecaa894ee96440ab3a
parentfda9e80a320c8761be7974237a995bda68b91e86
Add a C wrapper for gettimeofday

Based on part of a patch from Arnaud Degroote in #5480.
On NetBSD just calling the function directly warns:
    warning: reference to compatibility gettimeofday(); include <sys/time.h>
    to generate correct reference
GHC/Event/Clock.hsc
include/HsBase.h