Skip to content

Commit

Permalink
Ctypes has a slightly different interface to handle errno checking
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Apr 19, 2014
1 parent 64a1327 commit da57631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ffi/datetime.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ let () = seal timeval
type timezone
let timezone : timezone structure typ = structure "timezone"

let gettimeofday = foreign "gettimeofday"
(ptr timeval @-> ptr timezone @-> returning_checking_errno int)
let gettimeofday = foreign "gettimeofday" ~check_errno:true
(ptr timeval @-> ptr timezone @-> returning int)

let time' () = time (from_voidp time_t null)

Expand Down

0 comments on commit da57631

Please sign in to comment.