summaryrefslogtreecommitdiff
path: root/bdb
diff options
context:
space:
mode:
authorlenz@mysql.com <>2002-12-23 14:36:40 +0100
committerlenz@mysql.com <>2002-12-23 14:36:40 +0100
commitc0ed25283f29498f2cfd4dd3fa7cabd5558e5a4d (patch)
tree3bd92d59925233a3d96867614e50c49768219396 /bdb
parent446b9c0768628143e0a52b66ede392823aa89b71 (diff)
downloadmariadb-git-c0ed25283f29498f2cfd4dd3fa7cabd5558e5a4d.tar.gz
- Applied various patches provided by Christian Hammers (MySQL maintainer
for the Debian project) to fix some architecture-specific problems and some bugs
Diffstat (limited to 'bdb')
-rw-r--r--bdb/dist/aclocal/mutex.m42
-rw-r--r--bdb/include/mutex.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/bdb/dist/aclocal/mutex.m4 b/bdb/dist/aclocal/mutex.m4
index 5c9218da163..2010670599f 100644
--- a/bdb/dist/aclocal/mutex.m4
+++ b/bdb/dist/aclocal/mutex.m4
@@ -279,7 +279,7 @@ fi
dnl Sparc/gcc: SunOS, Solaris
dnl The sparc/gcc code doesn't always work, specifically, I've seen assembler
dnl failures from the stbar instruction on SunOS 4.1.4/sun4c and gcc 2.7.2.2.
-if test "$db_cv_mutex" = DOESNT_WORK; then
+if test "$db_cv_mutex" = no; then
AC_TRY_RUN([main(){
#if defined(__sparc__)
#if defined(__GNUC__)
diff --git a/bdb/include/mutex.h b/bdb/include/mutex.h
index 4c1b265355d..9f341695cbf 100644
--- a/bdb/include/mutex.h
+++ b/bdb/include/mutex.h
@@ -327,7 +327,7 @@ typedef unsigned char tsl_t;
*/
#define MUTEX_SET(tsl) ({ \
register tsl_t *__l = (tsl); \
- int __r; \
+ unsigned char __r; \
asm volatile("tas %1; \n \
seq %0" \
: "=dm" (__r), "=m" (*__l) \