* libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.

* libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t
typedef.
This commit is contained in:
Yaakov Selkowitz 2011-05-02 16:05:06 +00:00
parent 8978381c2a
commit 5f555b0bd3
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2011-05-02 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.
* libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t
typedef.
2011-04-19 Corinna Vinschen <vinschen@redhat.com>
* libc/include/sys/signal.h (_sig_func_ptr): Define with int parameter

View File

@ -125,7 +125,7 @@ extern "C" {
#define _POSIX_SHARED_MEMORY_OBJECTS 200112L
#define _POSIX_SHELL 1
/* #define _POSIX_SPAWN -1 */
/* #define _POSIX_SPIN_LOCKS -1 */
#define _POSIX_SPIN_LOCKS 200112L
/* #define _POSIX_SPORADIC_SERVER -1 */
#define _POSIX_SYNCHRONIZED_IO 200112L
/* #define _POSIX_THREAD_ATTR_STACKADDR -1 */

View File

@ -463,13 +463,13 @@ typedef struct {
/* POSIX Spin Lock Types */
#if !defined (__CYGWIN__)
#if defined(_POSIX_SPIN_LOCKS)
typedef __uint32_t pthread_spinlock_t; /* POSIX Spin Lock Object */
#endif /* defined(_POSIX_SPIN_LOCKS) */
/* POSIX Reader/Writer Lock Types */
#if !defined (__CYGWIN__)
#if defined(_POSIX_READER_WRITER_LOCKS)
typedef __uint32_t pthread_rwlock_t; /* POSIX RWLock Object */
typedef struct {