diff options
author | Kevin Ryde <user42@zip.com.au> | 2004-01-06 23:40:08 +0000 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2004-01-06 23:40:08 +0000 |
commit | be24d06003764a837ed7cd39038e084f6a97d1dd (patch) | |
tree | 4cb38d00f5e4f8fde7f3c33137a1fba2b02d3ddb | |
parent | 2359c543be71999796c4aaeff080231080426579 (diff) | |
download | guile-be24d06003764a837ed7cd39038e084f6a97d1dd.tar.gz |
(SCM_MUTEX_MAXSIZE): Increase to 12*sizeof(long),
for the benefit of powerpc-apple-darwin5.5. Reported by Richard Todd.
-rw-r--r-- | libguile/threads-plugin.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libguile/threads-plugin.h b/libguile/threads-plugin.h index 569b267cc..9a88fe7e0 100644 --- a/libguile/threads-plugin.h +++ b/libguile/threads-plugin.h @@ -3,7 +3,7 @@ #ifndef SCM_THREADS_PLUGIN_H #define SCM_THREADS_PLUGIN_H -/* Copyright (C) 1996,1997,1998,2000,2001, 2002 Free Software Foundation, Inc. +/* Copyright (C) 1996,1997,1998,2000,2001, 2002, 2003, 2004 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -23,8 +23,11 @@ #include <pthread.h> /* This file should *not* need to include pthread.h */ -/* Size is checked in scm_init_threads_plugin */ -#define SCM_MUTEX_MAXSIZE (9 * sizeof (long)) +/* Size is checked in scm_init_threads_plugin. + For reference, sizes encountered include, + powerpc-apple-darwin5.5 pthread_mutex_t 44 bytes + */ +#define SCM_MUTEX_MAXSIZE (12 * sizeof (long)) typedef struct { char _[SCM_MUTEX_MAXSIZE]; } scm_t_mutex; /*fixme* Should be defined similarly to scm_t_mutex. */ |