From dbaf153163a34cd1ec83fa49df808ff3de0e2475 Mon Sep 17 00:00:00 2001 From: olivier Date: Sat, 22 Oct 2011 23:12:20 +0000 Subject: [PATCH] * revert part of r19256. While this declaration seems not consistent with Haiku headers, it avoid some segmentation faults with threaded programs. git-svn-id: trunk@19531 - --- rtl/haiku/sysosh.inc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/rtl/haiku/sysosh.inc b/rtl/haiku/sysosh.inc index c4029d86ad..bdc66a285e 100644 --- a/rtl/haiku/sysosh.inc +++ b/rtl/haiku/sysosh.inc @@ -24,9 +24,12 @@ type { pthread_mutex_t } PRTLCriticalSection = ^TRTLCriticalSection; TRTLCriticalSection = record - flags : Cardinal; - lock : integer; - unused : integer; - owner : integer; - owner_count : integer; + __m_reserved: longint; + __m_count: longint; + __m_owner: pointer; + __m_kind: longint; + __m_lock: record + __status: sizeint; + __spinlock: longint; + end; end;