Przeglądaj źródła

* 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 -

olivier 13 lat temu
rodzic
commit
dbaf153163
1 zmienionych plików z 8 dodań i 5 usunięć
  1. 8 5
      rtl/haiku/sysosh.inc

+ 8 - 5
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;