From 6f7d2a798c2464842027c98da920ccbe52444d7b Mon Sep 17 00:00:00 2001 From: pierre Date: Wed, 1 May 2019 14:51:20 +0000 Subject: [PATCH] Change ssize_t type to clong and specify pthread_once_t_rec record git-svn-id: trunk@41966 - --- rtl/openbsd/ptypes.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rtl/openbsd/ptypes.inc b/rtl/openbsd/ptypes.inc index 2ba6bebf8c..4fce0ef563 100644 --- a/rtl/openbsd/ptypes.inc +++ b/rtl/openbsd/ptypes.inc @@ -61,7 +61,7 @@ type pSize = ^size_t; pSize_t = ^size_t; - ssize_t = cint32; { used by function for returning number of bytes } + ssize_t = clong; { used by function for returning number of bytes } TsSize = ssize_t; psSize = ^ssize_t; @@ -107,7 +107,6 @@ type pthread_mutexattr_t_rec = record end; pthread_cond_t_rec = record end; pthread_condattr_t_rec = record end; - pthread_once_t_rec = record end; pthread_rwlock_t_rec = record end; pthread_rwlockattr_t_rec = record end; @@ -118,7 +117,11 @@ type pthread_cond_t = ^pthread_cond_t_rec; pthread_condattr_t = ^pthread_condattr_t_rec; pthread_key_t = cint; - pthread_once_t = ^pthread_once_t_rec; + pthread_once_t_rec = record + state : cint; + mutex : pthread_mutex_t; + end; + pthread_once_t = pthread_once_t_rec; pthread_rwlock_t = ^pthread_rwlock_t_rec; pthread_rwlockattr_t = ^pthread_rwlockattr_t_rec;