summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2000-11-29 17:08:07 +0000
committeragc <agc@pkgsrc.org>2000-11-29 17:08:07 +0000
commitc6ee400636acf34510218baee34cda04e13e9bc3 (patch)
tree9fde237fc54ccbdc07206427990b1b9a9cdcc044
parent0f6a64c129ac3d189af614cabd533bcba11a3428 (diff)
downloadpkgsrc-c6ee400636acf34510218baee34cda04e13e9bc3.tar.gz
Add similar patch to the one in mit-pthreads, fixing the return value from
detzcode() from long to int. From Tom Thai.
-rw-r--r--devel/unproven-pthreads/files/patch-sum3
-rw-r--r--devel/unproven-pthreads/patches/patch-ab28
2 files changed, 30 insertions, 1 deletions
diff --git a/devel/unproven-pthreads/files/patch-sum b/devel/unproven-pthreads/files/patch-sum
index b5d61e5df30..bf85e35b00e 100644
--- a/devel/unproven-pthreads/files/patch-sum
+++ b/devel/unproven-pthreads/files/patch-sum
@@ -1,3 +1,4 @@
-$NetBSD: patch-sum,v 1.3 2000/09/11 02:02:40 wiz Exp $
+$NetBSD: patch-sum,v 1.4 2000/11/29 17:08:07 agc Exp $
MD5 (patch-aa) = c22d3df041130ba62d48208de1f281c5
+MD5 (patch-ab) = 1e5276b89be447be4bb0983f6be81569
diff --git a/devel/unproven-pthreads/patches/patch-ab b/devel/unproven-pthreads/patches/patch-ab
new file mode 100644
index 00000000000..75f44c55e30
--- /dev/null
+++ b/devel/unproven-pthreads/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.3 2000/11/29 17:08:08 agc Exp $
+
+Patch from Tom Thai (without this patch, mysql will result in a wrong
+date for "select now()")
+
+--- gen/ctime.c 2000/11/29 16:21:13 1.1
++++ gen/ctime.c 2000/11/29 16:23:14
+@@ -129,7 +129,7 @@
+ ** Prototypes for static functions.
+ */
+
+-static long detzcode __P((const char *));
++static int detzcode __P((const char *));
+ static const char * getnum __P((const char *, int *, int, int));
+ static const char * getsecs __P((const char *, long *));
+ static const char * getoffset __P((const char *, long *));
+@@ -175,9 +175,9 @@
+ time_t altzone = 0;
+ #endif /* defined ALTZONE */
+
+-static long detzcode(const char * codep)
++static int detzcode(const char * codep)
+ {
+- long result;
++ int result;
+ int i;
+
+ result = 0;