summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/semaphore.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-14 23:00:19 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-14 23:00:19 -0600
commit6b6ede3d15f04fe825cfa9f697507457e3640344 (patch)
treeefe9bf75eaf2200f89087ed0ef2ef350549ccd6d /libpthread/linuxthreads/semaphore.h
parentf972c2262fd4efc2bbf9789dce145bb705acec24 (diff)
resolve merge
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 7f3dbadfb..9a9b72c9e 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