diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-11 23:18:01 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-11 23:18:01 +0000 |
commit | 06ade0f4a6fc3f994fcf37615a96bd11e17dcc4c (patch) | |
tree | 04179cac0cf1a1cf57fcda54359c26e98f4391c3 /node.c | |
parent | a85ac8c0d182245d75eed1136503a57ac1c3a8fa (diff) |
Fix build against libpthread
* Makefile.am (filter_LDADD): Use -lpthread instead of -lthreads.
* filter.h: Include <pthread.h> instead of <cthreads.h>
* filter.c: Use pthread functions instead of cthreads functions.
* node.h: Likewise.
* node.c: Likewise.
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -41,7 +41,7 @@ /*---------------------------------------------------------------------------*/ /*--------Global Variables---------------------------------------------------*/ /*The lock protecting the underlying filesystem*/ -struct mutex ulfs_lock = MUTEX_INITIALIZER; +pthread_mutex_t ulfs_lock = PTHREAD_MUTEX_INITIALIZER; /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ @@ -125,7 +125,7 @@ error_t node_init_root (mach_port_t underlying, /*the port to the error_t err = 0; /*Acquire a lock for operations on the underlying filesystem */ - mutex_lock (&ulfs_lock); + pthread_mutex_lock (&ulfs_lock); /*Store the specified port in the node */ node->nn->port = underlying; @@ -142,12 +142,12 @@ error_t node_init_root (mach_port_t underlying, /*the port to the LOG_MSG ("node_init_root: Could not stat the root node."); /*unlock the mutex and exit */ - mutex_unlock (&ulfs_lock); + pthread_mutex_unlock (&ulfs_lock); return err; } /*Release the lock for operations on the undelying filesystem */ - mutex_unlock (&ulfs_lock); + pthread_mutex_unlock (&ulfs_lock); /*Return the result of operations */ return err; |