about summary refs log tree commit diff
path: root/nptl/pthread_condattr_getpshared.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_condattr_getpshared.c')
-rw-r--r--nptl/pthread_condattr_getpshared.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/pthread_condattr_getpshared.c b/nptl/pthread_condattr_getpshared.c
index 5a10f3eeb0..814796690c 100644
--- a/nptl/pthread_condattr_getpshared.c
+++ b/nptl/pthread_condattr_getpshared.c
@@ -22,7 +22,8 @@
 int
 pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
 {
-  *pshared = ((const struct pthread_condattr *) attr)->value & 1;
+  *pshared = (((const struct pthread_condattr *) attr)->value & 1
+	      ? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE);
 
   return 0;
 }