Ver Fonte

LibPthread: Define SEM_FAILED in semaphore.h

This makes the _multiprocessing module from the Python port build. :^)
Linus Groh há 3 anos atrás
pai
commit
e31d1620a8
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      Userland/Libraries/LibPthread/semaphore.h

+ 1 - 0
Userland/Libraries/LibPthread/semaphore.h

@@ -28,6 +28,7 @@ int sem_unlink(const char*);
 int sem_wait(sem_t*);
 int sem_wait(sem_t*);
 int sem_timedwait(sem_t*, const struct timespec* abstime);
 int sem_timedwait(sem_t*, const struct timespec* abstime);
 
 
+#define SEM_FAILED ((sem_t*)0)
 #define SEM_VALUE_MAX INT_MAX
 #define SEM_VALUE_MAX INT_MAX
 
 
 __END_DECLS
 __END_DECLS