* 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:
parent
8978381c2a
commit
5f555b0bd3
@ -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>
|
2011-04-19 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
* libc/include/sys/signal.h (_sig_func_ptr): Define with int parameter
|
* libc/include/sys/signal.h (_sig_func_ptr): Define with int parameter
|
||||||
|
@ -125,7 +125,7 @@ extern "C" {
|
|||||||
#define _POSIX_SHARED_MEMORY_OBJECTS 200112L
|
#define _POSIX_SHARED_MEMORY_OBJECTS 200112L
|
||||||
#define _POSIX_SHELL 1
|
#define _POSIX_SHELL 1
|
||||||
/* #define _POSIX_SPAWN -1 */
|
/* #define _POSIX_SPAWN -1 */
|
||||||
/* #define _POSIX_SPIN_LOCKS -1 */
|
#define _POSIX_SPIN_LOCKS 200112L
|
||||||
/* #define _POSIX_SPORADIC_SERVER -1 */
|
/* #define _POSIX_SPORADIC_SERVER -1 */
|
||||||
#define _POSIX_SYNCHRONIZED_IO 200112L
|
#define _POSIX_SYNCHRONIZED_IO 200112L
|
||||||
/* #define _POSIX_THREAD_ATTR_STACKADDR -1 */
|
/* #define _POSIX_THREAD_ATTR_STACKADDR -1 */
|
||||||
|
@ -463,13 +463,13 @@ typedef struct {
|
|||||||
|
|
||||||
/* POSIX Spin Lock Types */
|
/* POSIX Spin Lock Types */
|
||||||
|
|
||||||
|
#if !defined (__CYGWIN__)
|
||||||
#if defined(_POSIX_SPIN_LOCKS)
|
#if defined(_POSIX_SPIN_LOCKS)
|
||||||
typedef __uint32_t pthread_spinlock_t; /* POSIX Spin Lock Object */
|
typedef __uint32_t pthread_spinlock_t; /* POSIX Spin Lock Object */
|
||||||
#endif /* defined(_POSIX_SPIN_LOCKS) */
|
#endif /* defined(_POSIX_SPIN_LOCKS) */
|
||||||
|
|
||||||
/* POSIX Reader/Writer Lock Types */
|
/* POSIX Reader/Writer Lock Types */
|
||||||
|
|
||||||
#if !defined (__CYGWIN__)
|
|
||||||
#if defined(_POSIX_READER_WRITER_LOCKS)
|
#if defined(_POSIX_READER_WRITER_LOCKS)
|
||||||
typedef __uint32_t pthread_rwlock_t; /* POSIX RWLock Object */
|
typedef __uint32_t pthread_rwlock_t; /* POSIX RWLock Object */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user