summaryrefslogtreecommitdiff
path: root/sysdeps/pthread/bits
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/bits')
-rw-r--r--sysdeps/pthread/bits/semaphore.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/pthread/bits/semaphore.h b/sysdeps/pthread/bits/semaphore.h
index 12c0bfb..1b20f75 100644
--- a/sysdeps/pthread/bits/semaphore.h
+++ b/sysdeps/pthread/bits/semaphore.h
@@ -36,6 +36,10 @@ struct __semaphore
void *__data;
};
+typedef struct __semaphore sem_t;
+
+#define SEM_FAILED ((void *) 0)
+
/* Initializer for a semaphore. */
#define __SEMAPHORE_INITIALIZER(pshared, value) \
{ __PTHREAD_SPIN_LOCK_INITIALIZER, NULL, (pshared), (value), NULL }