summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2011-05-02 16:05:06 +0000
committerYaakov Selkowitz <yselkowi@redhat.com>2011-05-02 16:05:06 +0000
commit5f555b0bd35d3c18bd636bd15474178cda1264fc (patch)
tree705a2c5f8aaa79511415ebbf37716887f2252031 /newlib/libc/include
parent8978381c2a9661e373e9f4f7a7776ceefb016380 (diff)
downloadcygnal-5f555b0bd35d3c18bd636bd15474178cda1264fc.tar.gz
cygnal-5f555b0bd35d3c18bd636bd15474178cda1264fc.tar.bz2
cygnal-5f555b0bd35d3c18bd636bd15474178cda1264fc.zip
* libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.
* libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t typedef.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/sys/features.h2
-rw-r--r--newlib/libc/include/sys/types.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
index b2e56daae..db39bbba8 100644
--- a/newlib/libc/include/sys/features.h
+++ b/newlib/libc/include/sys/features.h
@@ -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 */
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index cf0b8dfc9..a8fee93ab 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -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 {