|
From: Nicholas N. <nj...@ca...> - 2004-02-28 23:35:36
|
CVS commit by nethercote:
Adjust vg_pthread_cond_t so it works with an older glibc.
M +8 -3 vg_include.h 1.184
--- valgrind/coregrind/vg_include.h #1.183:1.184
@@ -672,8 +672,13 @@ typedef struct
struct _vg_pthread_fastlock __vg_c_lock; /* Protect against concurrent access */
/*_pthread_descr*/ void* __vg_c_waiting; /* Threads waiting on this condition */
+
+ // Nb: the following padding removed because it was missing from an
+ // earlier glibc, so the size test in the CONVERT macro was failing.
+ // --njn
+
// Padding ensures the size is 48 bytes
- char __vg_padding[48 - sizeof(struct _vg_pthread_fastlock)
+ /*char __vg_padding[48 - sizeof(struct _vg_pthread_fastlock)
- sizeof(void*) - sizeof(long long)];
- long long __vg_align;
+ long long __vg_align;*/
} vg_pthread_cond_t;
|