From 7c3c877f546a728f7e6c9ac40a7d4a1226fd55a8 Mon Sep 17 00:00:00 2001 From: agc Date: Wed, 29 Nov 2000 17:08:07 +0000 Subject: Add similar patch to the one in mit-pthreads, fixing the return value from detzcode() from long to int. From Tom Thai. --- devel/unproven-pthreads/files/patch-sum | 3 ++- devel/unproven-pthreads/patches/patch-ab | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 devel/unproven-pthreads/patches/patch-ab (limited to 'devel') 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; -- cgit v1.2.3