diff options
author | bad <bad@pkgsrc.org> | 1999-02-04 21:15:15 +0000 |
---|---|---|
committer | bad <bad@pkgsrc.org> | 1999-02-04 21:15:15 +0000 |
commit | 8fdfbcece0dd2d907f9284a2021c3f01f9e89969 (patch) | |
tree | 1996d9710c5dfa81187cf00f4b3cae3bf5c128fe /databases | |
parent | 90aa162009eb9ce7a1502091a11ed7aa92fe50aa (diff) | |
download | pkgsrc-8fdfbcece0dd2d907f9284a2021c3f01f9e89969.tar.gz |
Catch up with recently renamed symbols in <arm32/setjmp.h>.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mysql/patches/patch-ax | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/databases/mysql/patches/patch-ax b/databases/mysql/patches/patch-ax index fc35aba858f..18ffebf84da 100644 --- a/databases/mysql/patches/patch-ax +++ b/databases/mysql/patches/patch-ax @@ -1,8 +1,8 @@ -$NetBSD: patch-ax,v 1.1 1998/10/28 18:18:09 bad Exp $ +$NetBSD: patch-ax,v 1.2 1999/02/04 21:15:15 bad Exp $ ---- /dev/null Sun Oct 25 03:15:17 1998 -+++ mit-pthreads/machdep/engine-arm32-netbsd-1.3.c Sun Oct 25 18:38:54 1998 -@@ -0,0 +1,195 @@ +--- /dev/null Thu Feb 4 01:37:20 1999 ++++ mit-pthreads/machdep/engine-arm32-netbsd-1.3.c Thu Feb 4 01:53:39 1999 +@@ -0,0 +1,203 @@ +/* ==== machdep.c ============================================================ + * Copyright (c) 1993, 1994 Chris Provenzano, proven@athena.mit.edu + * @@ -16,7 +16,7 @@ $NetBSD: patch-ax,v 1.1 1998/10/28 18:18:09 bad Exp $ + */ + +#ifndef lint -+static const char rcsid[] = "$Id: patch-ax,v 1.1 1998/10/28 18:18:09 bad Exp $"; ++static const char rcsid[] = "$Id: patch-ax,v 1.2 1999/02/04 21:15:15 bad Exp $"; +#endif + +#include <pthread.h> @@ -27,6 +27,14 @@ $NetBSD: patch-ax,v 1.1 1998/10/28 18:18:09 bad Exp $ +#include <fcntl.h> +#include <stdio.h> + ++#if defined(_JB_REG_R13) ++#define REG_LR _JB_REG_R14 ++#define REG_SP _JB_REG_R13 ++#else ++#define REG_LR JMPBUF_REG_R14 ++#define REG_SP JMPBUF_REG_R13 ++#endif ++ +/* ========================================================================== + * machdep_save_state() + */ @@ -152,10 +160,10 @@ $NetBSD: patch-ax,v 1.1 1998/10/28 18:18:09 bad Exp $ + * returned from a longjmp() to the beginning of + * machdep_pthread_start(). + */ -+ machdep_pthread->machdep_state[JMPBUF_REG_R14] = (int)machdep_pthread_start; ++ machdep_pthread->machdep_state[REG_LR] = (int)machdep_pthread_start; + + /* Stack starts high and builds down. */ -+ machdep_pthread->machdep_state[JMPBUF_REG_R13] = ++ machdep_pthread->machdep_state[REG_SP] = + (int)machdep_pthread->machdep_stack + stack_size; +} + |