diff options
Diffstat (limited to 'libports/port-ref-weak.c')
-rw-r--r-- | libports/port-ref-weak.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libports/port-ref-weak.c b/libports/port-ref-weak.c index 6ebd5608..c7d3c690 100644 --- a/libports/port-ref-weak.c +++ b/libports/port-ref-weak.c @@ -19,7 +19,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "ports.h" -#include <cthreads.h> #include <assert.h> void @@ -27,8 +26,8 @@ ports_port_ref_weak (void *portstruct) { struct port_info *pi = portstruct; - mutex_lock (&_ports_lock); + pthread_mutex_lock (&_ports_lock); assert (pi->refcnt || pi->weakrefcnt); pi->weakrefcnt++; - mutex_unlock (&_ports_lock); + pthread_mutex_unlock (&_ports_lock); } |