diff options
Diffstat (limited to 'src/thread')
-rw-r--r-- | src/thread/sem_open.c | 2 | ||||
-rw-r--r-- | src/thread/vmlock.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/thread/sem_open.c b/src/thread/sem_open.c index dad8f177..0ad29de9 100644 --- a/src/thread/sem_open.c +++ b/src/thread/sem_open.c @@ -12,6 +12,7 @@ #include <stdlib.h> #include <pthread.h> #include "lock.h" +#include "fork_impl.h" #define malloc __libc_malloc #define calloc __libc_calloc @@ -24,6 +25,7 @@ static struct { int refcnt; } *semtab; static volatile int lock[1]; +volatile int *const __sem_open_lockptr = lock; #define FLAGS (O_RDWR|O_NOFOLLOW|O_CLOEXEC|O_NONBLOCK) diff --git a/src/thread/vmlock.c b/src/thread/vmlock.c index 75f3cb76..fa0a8e3c 100644 --- a/src/thread/vmlock.c +++ b/src/thread/vmlock.c @@ -1,6 +1,8 @@ #include "pthread_impl.h" +#include "fork_impl.h" static volatile int vmlock[2]; +volatile int *const __vmlock_lockptr = vmlock; void __vm_wait() { |