From f343388bab448e016d08a8d7878a7c97269c3264 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Sat, 29 Sep 2007 21:19:52 +0000 Subject: [PATCH] Define QElem and modify QHdr accordingly --- libmacos/macos/osutils.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/libmacos/macos/osutils.h b/libmacos/macos/osutils.h index 6ab8d92..383f010 100644 --- a/libmacos/macos/osutils.h +++ b/libmacos/macos/osutils.h @@ -10,10 +10,18 @@ #include #include +struct QElem { + struct QElem *qLink; + int16_t qType; + short qData[1]; +}; +typedef struct QElem QElem; +typedef QElem * QElemPtr; + struct QHdr { - int16_t qFlags; - void* qHead; - void* qTail; + volatile int16_t qFlags; + volatile QElemPtr qHead; + volatile QElemPtr qTail; }; typedef struct QHdr QHdr; typedef QHdr * QHdrPtr;