diff options
Diffstat (limited to 'nptl/sem_open.c')
-rw-r--r-- | nptl/sem_open.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nptl/sem_open.c b/nptl/sem_open.c index 911b1f30a9..5b45fadd71 100644 --- a/nptl/sem_open.c +++ b/nptl/sem_open.c @@ -207,6 +207,8 @@ sem_open (const char *name, int oflag, ...) sem.newsem.data = value; #else sem.newsem.value = value << SEM_VALUE_SHIFT; + /* pad is used as a mutex on pre-v9 sparc and ignored otherwise. */ + sem.newsem.pad = 0; sem.newsem.nwaiters = 0; #endif /* This always is a shared semaphore. */ |