diff options
author | Linus Groh <mail@linusgroh.de> | 2022-03-16 18:02:28 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-03-16 18:03:52 +0000 |
commit | e31d1620a83596eed542584118cc02e8902d7715 (patch) | |
tree | 9ef7030dae59187bbd865a3f33c36683e073f4a2 /Userland/Libraries | |
parent | 9882848e0bf783dfc8e8a6d887a848d70d9c58f4 (diff) | |
download | serenity-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.h | 1 |
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 |