From c9fc3cbc0449b0b67a5e491fe8c492442c120843 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 11 Feb 2013 23:15:15 +0000 Subject: Fix build against libpthread * Makefile (HURDLIBS): Add -lshouldbeinlibc * gopherfs.h: Include instead of , use pthread functions instead of cthreads functions. --- netfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'netfs.c') diff --git a/netfs.c b/netfs.c index bcd6e093b..b1c9dc19a 100644 --- a/netfs.c +++ b/netfs.c @@ -45,7 +45,7 @@ netfs_attempt_create_file (struct iouser *user, struct node *dir, char *name, mode_t mode, struct node **node) { *node = NULL; - mutex_unlock (&dir->lock); + pthread_mutex_unlock (&dir->lock); return EROFS; } @@ -299,7 +299,7 @@ netfs_attempt_lookup (struct iouser *user, struct node *dir, ; if (nd) - mutex_lock (&nd->lock); + pthread_mutex_lock (&nd->lock); else err = ENOENT; @@ -310,7 +310,7 @@ netfs_attempt_lookup (struct iouser *user, struct node *dir, if (!err) netfs_nref (*node); - mutex_unlock (&dir->lock); + pthread_mutex_unlock (&dir->lock); return err; } @@ -469,7 +469,7 @@ netfs_attempt_mkfile (struct iouser *user, struct node *dir, mode_t mode, struct node ** node) { *node = NULL; - mutex_unlock (&dir->lock); + pthread_mutex_unlock (&dir->lock); return EROFS; } -- cgit v1.2.3