We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a1327 commit da57631Copy full SHA for da57631
code/ffi/datetime.ml
@@ -16,8 +16,8 @@ let () = seal timeval
16
type timezone
17
let timezone : timezone structure typ = structure "timezone"
18
19
-let gettimeofday = foreign "gettimeofday"
20
- (ptr timeval @-> ptr timezone @-> returning_checking_errno int)
+let gettimeofday = foreign "gettimeofday" ~check_errno:true
+ (ptr timeval @-> ptr timezone @-> returning int)
21
22
let time' () = time (from_voidp time_t null)
23
0 commit comments