Browse Source

* Fix pthread_mutexattr_t type according to /usr/include/pthread_types.h

git-svn-id: trunk@20689 -
pierre 13 years ago
parent
commit
9d9a5013fd
1 changed files with 4 additions and 1 deletions
  1. 4 1
      rtl/netbsd/ptypes.inc

+ 4 - 1
rtl/netbsd/ptypes.inc

@@ -150,7 +150,10 @@ type
    pthread_t            = pointer;
    pthread_t            = pointer;
    pthread_attr_t       = pointer;
    pthread_attr_t       = pointer;
    pthread_mutex_t      = {$i pmutext.inc}
    pthread_mutex_t      = {$i pmutext.inc}
-   pthread_mutexattr_t  = pointer;
+   pthread_mutexattr_t = record
+     ptma_magic : cint;
+     ptma_private : pointer;
+   end;
    pthread_cond_t       = pointer;
    pthread_cond_t       = pointer;
    pthread_condattr_t   = pointer;
    pthread_condattr_t   = pointer;
    pthread_key_t        = cint;
    pthread_key_t        = cint;