1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 05:50:26 +02:00

(SCM_MUTEX_MAXSIZE): Increase to 12*sizeof(long),

for the benefit of powerpc-apple-darwin5.5.  Reported by Richard Todd.
This commit is contained in:
Kevin Ryde 2004-01-06 23:40:08 +00:00
parent 2359c543be
commit be24d06003

View file

@ -3,7 +3,7 @@
#ifndef SCM_THREADS_PLUGIN_H #ifndef SCM_THREADS_PLUGIN_H
#define 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 * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * 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 */ #include <pthread.h> /* This file should *not* need to include pthread.h */
/* Size is checked in scm_init_threads_plugin */ /* Size is checked in scm_init_threads_plugin.
#define SCM_MUTEX_MAXSIZE (9 * sizeof (long)) 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; typedef struct { char _[SCM_MUTEX_MAXSIZE]; } scm_t_mutex;
/*fixme* Should be defined similarly to scm_t_mutex. */ /*fixme* Should be defined similarly to scm_t_mutex. */