summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-08 11:12:30 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-08 11:12:30 +0200
commit7a05d6fac03cd1d96ef219ad64cb2a61c8300c47 (patch)
treeed8a36e984ffb3683a2428e345c774481dd34ba8 /debug.c
parente559567111b9b5dd46cf5e3278e71cc0b2423cfa (diff)
parent09a547f9155e54fd34c4fab20ff98d906cedb2c2 (diff)
Merge remote-tracking branch 'origin/tarfs/master' into tarfs
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug.c b/debug.c
index ed839501b..2f61fbc63 100644
--- a/debug.c
+++ b/debug.c
@@ -26,10 +26,10 @@
#include <errno.h>
#include <error.h>
#include <string.h>
-#include <cthreads.h>
+#include <pthread.h>
-static struct mutex debug_lock;
+static pthread_mutex_t debug_lock;
static char *debug_function = NULL;
static FILE *debug_file = NULL;
@@ -54,7 +54,7 @@ __debug_start (const char *function)
if (!debug_file)
return;
- mutex_lock (&debug_lock);
+ pthread_mutex_lock (&debug_lock);
debug_function = strdup (function);
}
@@ -84,5 +84,5 @@ __debug_end ()
free (debug_function);
debug_function = NULL;
fflush (debug_file);
- mutex_unlock (&debug_lock);
+ pthread_mutex_unlock (&debug_lock);
}