summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems/posix/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/include/rtems/posix/semaphore.h')
-rw-r--r--cpukit/posix/include/rtems/posix/semaphore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/posix/include/rtems/posix/semaphore.h b/cpukit/posix/include/rtems/posix/semaphore.h
index aaf0c4b898..da6b65c642 100644
--- a/cpukit/posix/include/rtems/posix/semaphore.h
+++ b/cpukit/posix/include/rtems/posix/semaphore.h
@@ -23,6 +23,8 @@ extern "C" {
#include <rtems/score/coresem.h>
+#define SEM_FAILED (sem_t *) -1
+
/*
* Data Structure used to manage a POSIX semaphore
*/