Mercurial > cpython-lru_cache-weakref
comparison Python/thread_pthread.h @ 22341:2548e2f323fa legacy-trunk
Document that _POSIX_SEMAPHORES is predefined.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 17 Mar 2002 17:19:00 +0000 |
| parents | 6c3e32357d91 |
| children | 3731be28e1a3 |
comparison
equal
deleted
inserted
replaced
| 22339:6c3e32357d91 | 22341:2548e2f323fa |
|---|---|
| 9 #include <pthread.h> | 9 #include <pthread.h> |
| 10 #ifdef __APPLE__ | 10 #ifdef __APPLE__ |
| 11 #undef destructor | 11 #undef destructor |
| 12 #endif | 12 #endif |
| 13 #include <signal.h> | 13 #include <signal.h> |
| 14 | |
| 15 /* The POSIX spec says that implementations supporting the sem_* | |
| 16 family of functions must indicate this by defining | |
| 17 _POSIX_SEMAPHORES. */ | |
| 14 #ifdef _POSIX_SEMAPHORES | 18 #ifdef _POSIX_SEMAPHORES |
| 15 #include <semaphore.h> | 19 #include <semaphore.h> |
| 16 #include <errno.h> | 20 #include <errno.h> |
| 17 #endif | 21 #endif |
| 18 | 22 |
