summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-03-16 18:02:28 +0000
committerLinus Groh <mail@linusgroh.de>2022-03-16 18:03:52 +0000
commite31d1620a83596eed542584118cc02e8902d7715 (patch)
tree9ef7030dae59187bbd865a3f33c36683e073f4a2 /Userland/Libraries
parent9882848e0bf783dfc8e8a6d887a848d70d9c58f4 (diff)
downloadserenity-e31d1620a83596eed542584118cc02e8902d7715.zip
LibPthread: Define SEM_FAILED in semaphore.h
This makes the _multiprocessing module from the Python port build. :^)
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibPthread/semaphore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibPthread/semaphore.h b/Userland/Libraries/LibPthread/semaphore.h
index 8e71c813cf..afcbe11283 100644
--- a/Userland/Libraries/LibPthread/semaphore.h
+++ b/Userland/Libraries/LibPthread/semaphore.h
@@ -28,6 +28,7 @@ int sem_unlink(const char*);
int sem_wait(sem_t*);
int sem_timedwait(sem_t*, const struct timespec* abstime);
+#define SEM_FAILED ((sem_t*)0)
#define SEM_VALUE_MAX INT_MAX
__END_DECLS