summaryrefslogtreecommitdiff
path: root/security/libprelude/patches
diff options
context:
space:
mode:
authordrochner <drochner>2011-07-08 11:47:28 +0000
committerdrochner <drochner>2011-07-08 11:47:28 +0000
commit5933f863544898de8ca47e6abb62ae3732f09bc3 (patch)
tree8de301e4dd3e6dadc511bacac754fcf64f3c230d /security/libprelude/patches
parentf167cda8b33fe76a99b0f7a7fde47ad286740268 (diff)
downloadpkgsrc-5933f863544898de8ca47e6abb62ae3732f09bc3.tar.gz
depend on libgcrypt explicitely
(gnutls used to pull it in for us, but this will be cleaned up) also remove an assumption about time_t size which fails on NetBSD-current
Diffstat (limited to 'security/libprelude/patches')
-rw-r--r--security/libprelude/patches/patch-am15
1 files changed, 15 insertions, 0 deletions
diff --git a/security/libprelude/patches/patch-am b/security/libprelude/patches/patch-am
new file mode 100644
index 00000000000..f8b3afba90d
--- /dev/null
+++ b/security/libprelude/patches/patch-am
@@ -0,0 +1,15 @@
+$NetBSD: patch-am,v 1.1 2011/07/08 11:47:28 drochner Exp $
+
+--- libmissing/mktime.c.orig 2009-05-12 07:49:42.000000000 +0000
++++ libmissing/mktime.c
+@@ -165,8 +165,10 @@ ydhms_diff (long int year1, long int yda
+ int year0, int yday0, int hour0, int min0, int sec0)
+ {
+ verify (C99_integer_division, -1 / 2 == 0);
++#if 0
+ verify (long_int_year_and_yday_are_wide_enough,
+ INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX);
++#endif
+
+ /* Compute intervening leap days correctly even if year is negative.
+ Take care to avoid integer overflow here. */