beast r4448 - trunk/birnet
- From: samh svn gnome org
- To: svn-commits-list gnome org
- Subject: beast r4448 - trunk/birnet
- Date: Fri, 7 Mar 2008 13:10:37 +0000 (GMT)
Author: samh
Date: Fri Mar 7 13:10:37 2008
New Revision: 4448
URL: http://svn.gnome.org/viewvc/beast?rev=4448&view=rev
Log:
* Fix alignment issues in BirnetCond and BirnetMutex by adding a long long
int dummy variable in the unions. Prevents a crash on Sparc systems where
BirnetCond has 32-bit alignment but pthread_cond_t has a 64-bit member.
Modified:
trunk/birnet/birnetcdefs.h
Modified: trunk/birnet/birnetcdefs.h
==============================================================================
--- trunk/birnet/birnetcdefs.h (original)
+++ trunk/birnet/birnetcdefs.h Fri Mar 7 13:10:37 2008
@@ -256,10 +256,12 @@
typedef union {
void *cond_pointer;
BirnetUInt8 cond_dummy[MAX (8, BIRNET_SIZEOF_PTH_COND_T)];
+ long long int align;
} BirnetCond;
typedef union {
void *mutex_pointer;
BirnetUInt8 mutex_dummy[MAX (8, BIRNET_SIZEOF_PTH_MUTEX_T)];
+ long long int align;
} BirnetMutex;
typedef struct {
BirnetMutex mutex;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]