diff options
Diffstat (limited to 'libports/port-ref.c')
-rw-r--r-- | libports/port-ref.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libports/port-ref.c b/libports/port-ref.c index 7fd15272..864c540e 100644 --- a/libports/port-ref.c +++ b/libports/port-ref.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,10 +26,10 @@ ports_port_ref (void *portstruct) { struct port_info *pi = portstruct; - mutex_lock (&_ports_lock); + pthread_mutex_lock (&_ports_lock); assert (pi->refcnt || pi->weakrefcnt); pi->refcnt++; - mutex_unlock (&_ports_lock); + pthread_mutex_unlock (&_ports_lock); } |