diff options
Diffstat (limited to 'sysdeps/mach/hurd/malloc-machine.h')
-rw-r--r-- | sysdeps/mach/hurd/malloc-machine.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sysdeps/mach/hurd/malloc-machine.h b/sysdeps/mach/hurd/malloc-machine.h index 515f3ff151..d3580059a6 100644 --- a/sysdeps/mach/hurd/malloc-machine.h +++ b/sysdeps/mach/hurd/malloc-machine.h @@ -22,15 +22,14 @@ #undef thread_atfork_static -#include <atomic.h> #include <libc-lock.h> +#include <mach/lock-intern.h> -/* Assume hurd, with cthreads */ - -/* Cthreads `mutex_t' is a pointer to a mutex, and malloc wants just the - mutex itself. */ #undef mutex_t -#define mutex_t struct mutex +#define mutex_t unsigned int + +#undef MUTEX_INITIALIZER +#define MUTEX_INITIALIZER LLL_INITIALIZER #undef mutex_init #define mutex_init(m) ({ __mutex_init(m); 0; }) |