diff options
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/cygwin/types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/include/cygwin/types.h b/winsup/cygwin/include/cygwin/types.h index 92b60b7..92f437f 100644 --- a/winsup/cygwin/include/cygwin/types.h +++ b/winsup/cygwin/include/cygwin/types.h @@ -50,6 +50,7 @@ typedef __gid16_t gid_t; #endif #if !defined(__INSIDE_CYGWIN__) || !defined(__cplusplus) +#if defined(_POSIX_THREADS) typedef void *pthread_t; typedef void *pthread_mutex_t; @@ -87,6 +88,7 @@ typedef class pthread_rwlockattr *pthread_rwlockattr_t; /* semaphores types */ typedef class semaphore *sem_t; +#endif /* defined(_POSIX_THREADS) */ #endif /* __INSIDE_CYGWIN__ */ #endif /* _CYGWIN_TYPES_H */ |