]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.
authorYaakov Selkowitz <yselkowi@redhat.com>
Mon, 2 May 2011 16:05:06 +0000 (16:05 +0000)
committerYaakov Selkowitz <yselkowi@redhat.com>
Mon, 2 May 2011 16:05:06 +0000 (16:05 +0000)
* libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t
typedef.

newlib/ChangeLog
newlib/libc/include/sys/features.h
newlib/libc/include/sys/types.h

index cbdbc0e636145bd80f3b4bcf367adb4d2b4bf617..b96c40a43c0bceead68010c669b0e82cfcd9db92 100644 (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
index b2e56daae97c878c2ea0c645bcd276fca28cb5f1..db39bbba8e24154642c05971cc01e44ef177f094 100644 (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 */
index cf0b8dfc9a3274d8f393cc1d8640ef7682994f51..a8fee93abe9b2ce38f555861b11b10fb2443381d 100644 (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 {
This page took 0.056696 seconds and 5 git commands to generate.