[commit: packages/time] format-widths, improve-leapseconds, master, posix-perf, tasty, wip/travis: Various fixes to make this build & work on Windows (4b425ec)

git at git.haskell.org git at git.haskell.org
Mon Feb 20 21:10:38 UTC 2017


Repository : ssh://git@git.haskell.org/time

On branches: format-widths,improve-leapseconds,master,posix-perf,tasty,wip/travis
Link       : http://git.haskell.org/packages/time.git/commitdiff/4b425ec9819e4a3c0ae52a3f84c2094d46a1ceac

>---------------------------------------------------------------

commit 4b425ec9819e4a3c0ae52a3f84c2094d46a1ceac
Author: Simon Marlow <simonmar at microsoft.com>
Date:   Mon May 29 05:25:23 2006 -0700

    Various fixes to make this build & work on Windows
    
    A number of things didn't work on Windows: we were using
    gettimeofday() which doesn't exist, localtime_r() doesn't exist, the
    tm_zone field in struct tm doesn't exist, etc.
    
     * timestuff.{c,h} is now cbits/HsTime.c and includes/HsTime.h,
       for consistency with other packages
    
     * There's a configure script.  Hence, a default Setup.hs will be
       required for using Cabal (I haven't added this yet, I think we
       were going to make some more changes in Cabal to make it optional).
    
     * fixed various problems in package.conf.in.  I haven't tested
       time.cabal, I expect it doesn't work on Windows, but it might
       still work on Unix.
    
     * We get the current time from the native Win32 API.  This requires
       the Win32 library, hence a conditional dependency on Win32.
    
     * some cursory testing on Win32, we can get the local time and the
       timezone looks ok.
    
    darcs-hash:20060529122523-760e2-1707aeb6dcf612f6c7c134b1eab52c1187a8305f


>---------------------------------------------------------------

4b425ec9819e4a3c0ae52a3f84c2094d46a1ceac
 Data/Time/Clock/CTimeval.hs     |  7 +++++-
 Data/Time/Clock/POSIX.hs        | 34 ++++++++++++++++++++++----
 Data/Time/LocalTime/TimeZone.hs |  2 +-
 Makefile                        |  3 +++
 aclocal.m4                      | 19 +++++++++++++++
 cbits/HsTime.c                  | 54 +++++++++++++++++++++++++++++++++++++++++
 configure.ac                    | 15 ++++++++++++
 include/HsTime.h                | 13 ++++++++++
 include/timestuff.h             |  3 ---
 package.conf.in                 | 19 ++++++++++++---
 time.cabal                      |  4 ++-
 timestuff.c                     | 14 -----------
 12 files changed, 158 insertions(+), 29 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 4b425ec9819e4a3c0ae52a3f84c2094d46a1ceac


More information about the ghc-commits mailing list