summaryrefslogtreecommitdiff
path: root/p/haskell-unix-time
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-06-15 05:51:03 +0400
committerColin Watson <cjwatson@debian.org>2013-06-15 05:51:03 +0400
commitcd0770648fb4ee3e2f2d085ae2c2ce8ca62b037d (patch)
tree6cfd5c890fc12c11f00b2566e7156662262b2add /p/haskell-unix-time
parent40999c9bf71d889fe1d765e21e569c496196d85a (diff)
downloadDHG_packages-cd0770648fb4ee3e2f2d085ae2c2ce8ca62b037d.tar.gz
haskell-unix-time: Define _GNU_SOURCE for strptime_l.
Diffstat (limited to 'p/haskell-unix-time')
-rw-r--r--p/haskell-unix-time/debian/changelog1
-rw-r--r--p/haskell-unix-time/debian/patches/implicit-declaration.patch19
-rw-r--r--p/haskell-unix-time/debian/patches/series1
3 files changed, 21 insertions, 0 deletions
diff --git a/p/haskell-unix-time/debian/changelog b/p/haskell-unix-time/debian/changelog
index 7ed6af3a6..a1d51f47f 100644
--- a/p/haskell-unix-time/debian/changelog
+++ b/p/haskell-unix-time/debian/changelog
@@ -2,6 +2,7 @@ haskell-unix-time (0.1.2-4) UNRELEASED; urgency=low
* Only enable tests on architectures with GHCi, due to use of Template
Haskell.
+ * Define _GNU_SOURCE for strptime_l.
-- Colin Watson <cjwatson@debian.org> Sat, 15 Jun 2013 01:40:45 +0100
diff --git a/p/haskell-unix-time/debian/patches/implicit-declaration.patch b/p/haskell-unix-time/debian/patches/implicit-declaration.patch
new file mode 100644
index 000000000..5cfea1cf4
--- /dev/null
+++ b/p/haskell-unix-time/debian/patches/implicit-declaration.patch
@@ -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@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 --git a/p/haskell-unix-time/debian/patches/series b/p/haskell-unix-time/debian/patches/series
new file mode 100644
index 000000000..ebe797fca
--- /dev/null
+++ b/p/haskell-unix-time/debian/patches/series
@@ -0,0 +1 @@
+implicit-declaration.patch