[Git][haskell-team/DHG_packages][master] foundation: Fix issues with 64-bit time_t
Ilias Tsitsimpis (@iliastsi)
gitlab at salsa.debian.org
Sat Apr 20 12:43:11 BST 2024
Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
c19eff8f by Ilias Tsitsimpis at 2024-04-20T14:04:38+03:00
foundation: Fix issues with 64-bit time_t
- - - - -
3 changed files:
- p/haskell-foundation/debian/changelog
- + p/haskell-foundation/debian/patches/series
- + p/haskell-foundation/debian/patches/time64_t
Changes:
=====================================
p/haskell-foundation/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-foundation (0.0.30-2) unstable; urgency=medium
+
+ * Fix issues with 64-bit time_t
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org> Sat, 20 Apr 2024 14:04:33 +0300
+
haskell-foundation (0.0.30-1) unstable; urgency=medium
[ Ilias Tsitsimpis ]
=====================================
p/haskell-foundation/debian/patches/series
=====================================
@@ -0,0 +1 @@
+time64_t
=====================================
p/haskell-foundation/debian/patches/time64_t
=====================================
@@ -0,0 +1,30 @@
+Description: Use CApiFFI when calling into libc
+Author: Ilias Tsitsimpis <iliastsi at debian.org>
+
+Index: b/Foundation/System/Bindings/Time.hsc
+===================================================================
+--- a/Foundation/System/Bindings/Time.hsc
++++ b/Foundation/System/Bindings/Time.hsc
+@@ -2,6 +2,7 @@
+ -- Module : Foundation.System.Bindings.Time
+ -- Maintainer : Haskell foundation
+ --
++{-# LANGUAGE CApiFFI #-}
+
+ module Foundation.System.Bindings.Time where
+
+@@ -116,11 +117,11 @@ foreign import ccall unsafe "foundation_
+ foreign import ccall unsafe "foundation_time_clock_gettime"
+ sysTimeClockGetTime :: CClockId -> Ptr CTimeSpec -> IO CInt
+ #else
+-foreign import ccall unsafe "clock_getres"
++foreign import capi unsafe "time.h clock_getres"
+ sysTimeClockGetRes :: CClockId -> Ptr CTimeSpec -> IO CInt
+-foreign import ccall unsafe "clock_gettime"
++foreign import capi unsafe "time.h clock_gettime"
+ sysTimeClockGetTime :: CClockId -> Ptr CTimeSpec -> IO CInt
+ #endif
+
+-foreign import ccall unsafe "gettimeofday"
++foreign import capi unsafe "sys/time.h gettimeofday"
+ sysTimeGetTimeOfDay :: Ptr CTimeVal -> Ptr CTimeZone -> IO CInt
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/c19eff8f1a447c491a17fb81720c3325c942a9c6
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/c19eff8f1a447c491a17fb81720c3325c942a9c6
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20240420/1885d57f/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list