diff options
Diffstat (limited to 'mach/mutex-init.c')
-rw-r--r-- | mach/mutex-init.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mach/mutex-init.c b/mach/mutex-init.c index 16bf34f67c..a8f238c722 100644 --- a/mach/mutex-init.c +++ b/mach/mutex-init.c @@ -1,5 +1,5 @@ /* Initialize a cthreads mutex structure. - Copyright (C) 1995-2016 Free Software Foundation, Inc. + Copyright (C) 1995-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -17,13 +17,11 @@ <http://www.gnu.org/licenses/>. */ #include <lock-intern.h> -#include <cthreads.h> +#include <lowlevellock.h> void __mutex_init (void *lock) { - /* This happens to be name space-safe because it is a macro. - It invokes only spin_lock_init, which is a macro for __spin_lock_init; - and cthread_queue_init, which is a macro for some simple code. */ - mutex_init ((struct mutex *) lock); + *(int *)lock = LLL_INITIALIZER; } +libc_hidden_def (__mutex_init) |