[Pkg-haskell-commits] darcs: haskell-unix-time: Define _GNU_SOURCE for strptime_l.
Colin Watson
cjwatson at debian.org
Sat Jun 15 01:53:19 UTC 2013
Sat Jun 15 01:51:03 UTC 2013 Colin Watson <cjwatson at debian.org>
* Define _GNU_SOURCE for strptime_l.
M ./changelog +1
A ./patches/
A ./patches/implicit-declaration.patch
A ./patches/series
Sat Jun 15 01:51:03 UTC 2013 Colin Watson <cjwatson at debian.org>
* Define _GNU_SOURCE for strptime_l.
diff -rN -u old-haskell-unix-time/changelog new-haskell-unix-time/changelog
--- old-haskell-unix-time/changelog 2013-06-15 01:53:19.093539790 +0000
+++ new-haskell-unix-time/changelog 2013-06-15 01:53:19.125543366 +0000
@@ -2,6 +2,7 @@
* Only enable tests on architectures with GHCi, due to use of Template
Haskell.
+ * Define _GNU_SOURCE for strptime_l.
-- Colin Watson <cjwatson at debian.org> Sat, 15 Jun 2013 01:40:45 +0100
diff -rN -u old-haskell-unix-time/patches/implicit-declaration.patch new-haskell-unix-time/patches/implicit-declaration.patch
--- old-haskell-unix-time/patches/implicit-declaration.patch 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-unix-time/patches/implicit-declaration.patch 2013-06-15 01:53:19.117543229 +0000
@@ -0,0 +1,19 @@
+Description: Define _GNU_SOURCE for strptime_l
+ Without this we get -Wimplicit-function-declaration warnings from GCC on
+ non-Linux glibc-based architectures.
+Author: Colin Watson <cjwatson at debian.org>
+Forwarded: https://github.com/kazu-yamamoto/unix-time/pull/11
+Last-Update: 2013-06-15
+
+Index: b/cbits/conv.c
+===================================================================
+--- a/cbits/conv.c
++++ b/cbits/conv.c
+@@ -7,6 +7,7 @@
+ #define _BSD_SOURCE
+ #elif HAVE_STRPTIME_L
+ #define THREAD_SAFE 1
++#define _GNU_SOURCE
+ #else
+ #define THREAD_SAFE 0
+ #endif
diff -rN -u old-haskell-unix-time/patches/series new-haskell-unix-time/patches/series
--- old-haskell-unix-time/patches/series 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-unix-time/patches/series 2013-06-15 01:53:19.125543366 +0000
@@ -0,0 +1 @@
+implicit-declaration.patch
More information about the Pkg-haskell-commits
mailing list