Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2011-05-02 20:05:06 +0400
committerYaakov Selkowitz <yselkowi@redhat.com>2011-05-02 20:05:06 +0400
commit5f555b0bd35d3c18bd636bd15474178cda1264fc (patch)
tree705a2c5f8aaa79511415ebbf37716887f2252031 /newlib
parent8978381c2a9661e373e9f4f7a7776ceefb016380 (diff)
* 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')
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/include/sys/features.h2
-rw-r--r--newlib/libc/include/sys/types.h2
3 files changed, 8 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index cbdbc0e63..b96c40a43 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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
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 {