summaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib.h b/lib.h
index be9a219..095adaa 100644
--- a/lib.h
+++ b/lib.h
@@ -65,17 +65,17 @@ error_t file_lookup (file_t dir, char *name, int flags0, int flags1, int mode,
/* Returns no error if directory. */
error_t check_dir (char *path);
-extern struct mutex debug_msg_lock;
+extern pthread_mutex_t debug_msg_lock;
/* Support for debugging messages. */
#define debug_msg_send(fmt, args...) \
do \
{ \
- mutex_lock (&debug_msg_lock); \
+ pthread_mutex_lock (&debug_msg_lock); \
fprintf (stderr, "%s:%i: ", __FILE__, __LINE__); \
fprintf (stderr, fmt , ## args); \
putc ('\n', stderr); \
- mutex_unlock (&debug_msg_lock); \
+ pthread_mutex_unlock (&debug_msg_lock); \
} \
while (0)