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
diff options
context:
space:
mode:
-rw-r--r--newlib/libc/sys/rtems/include/sys/_pthreadtypes.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h b/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h
index e1a88e9cd..bd66c689e 100644
--- a/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h
+++ b/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h
@@ -22,6 +22,7 @@
#include <sys/sched.h>
#include <sys/cpuset.h>
+#include <sys/lock.h>
/*
* 2.5 Primitive System Data Types, P1003.1c/D10, p. 19.
@@ -190,7 +191,10 @@ typedef struct {
/* POSIX Spin Lock Types */
#if defined(_POSIX_SPIN_LOCKS)
-typedef __uint32_t pthread_spinlock_t; /* POSIX Spin Lock Object */
+typedef struct {
+ struct _Ticket_lock_Control _Lock;
+ __uint32_t _interrupt_state;
+} pthread_spinlock_t; /* POSIX Spin Lock Object */
#endif /* defined(_POSIX_SPIN_LOCKS) */
/* POSIX Reader/Writer Lock Types */