summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/linuxthreads/semaphore.h')
-rw-r--r--libpthread/linuxthreads/semaphore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/linuxthreads/semaphore.h b/libpthread/linuxthreads/semaphore.h
index 7ab772bfa..3924a471d 100644
--- a/libpthread/linuxthreads/semaphore.h
+++ b/libpthread/linuxthreads/semaphore.h
@@ -44,7 +44,7 @@ typedef struct
/* Maximum value the semaphore can have. */
#ifndef SEM_VALUE_MAX
-#define SEM_VALUE_MAX (2147483647)
+#define SEM_VALUE_MAX ((int) ((~0u) >> 1))
#endif