File: time64_t

package info (click to toggle)
haskell-old-time 1.1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 380 kB
  • sloc: sh: 3,201; ansic: 63; makefile: 4; haskell: 4
file content (24 lines) | stat: -rw-r--r-- 793 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Use CApiFFI when calling into libc
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://github.com/haskell/old-time/issues/16

Index: b/System/Time.hsc
===================================================================
--- a/System/Time.hsc
+++ b/System/Time.hsc
@@ -1,5 +1,6 @@
 #if __GLASGOW_HASKELL__ >= 701
 {-# LANGUAGE Trustworthy #-}
+{-# LANGUAGE CApiFFI #-}
 #endif
 
 -----------------------------------------------------------------------------
@@ -744,7 +745,7 @@ foreign import ccall unsafe "HsTime.h __
 foreign import ccall unsafe "time.h gmtime"
     gmtime      :: Ptr CTime -> IO (Ptr CTm)
 #endif
-foreign import ccall unsafe "time.h mktime"
+foreign import capi unsafe "time.h mktime"
     mktime      :: Ptr CTm   -> IO CTime
 
 #if HAVE_GETTIMEOFDAY