aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-06-26 10:03:25 +0000
committerUlrich Drepper <drepper@redhat.com>1998-06-26 10:03:25 +0000
commitb195f6bcb3127b64159d9f9a3fd287151e2dcd28 (patch)
treed698c8b4234d3b6c9edfc25c418a21de7a2ba82d /linuxthreads
parente138a80033905ff82025155c00405da998aa07d3 (diff)
downloadglibc-b195f6bcb3127b64159d9f9a3fd287151e2dcd28.zip
glibc-b195f6bcb3127b64159d9f9a3fd287151e2dcd28.tar.gz
glibc-b195f6bcb3127b64159d9f9a3fd287151e2dcd28.tar.bz2
Update.
* sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct for new definition of pthread_rwlock_t.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/ChangeLog3
-rw-r--r--linuxthreads/sysdeps/pthread/pthread.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index b4f2ae6..02d5f8e 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,5 +1,8 @@
1998-06-26 Ulrich Drepper <drepper@cygnus.com>
+ * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
+ for new definition of pthread_rwlock_t.
+
* spinlock.c: Correct test whether to compile
__pthread_compare_and_swap or not.
diff --git a/linuxthreads/sysdeps/pthread/pthread.h b/linuxthreads/sysdeps/pthread/pthread.h
index 127e15d..b76c4a8 100644
--- a/linuxthreads/sysdeps/pthread/pthread.h
+++ b/linuxthreads/sysdeps/pthread/pthread.h
@@ -46,7 +46,7 @@ typedef struct _pthread_descr_struct *_pthread_descr;
/* Fast locks (not abstract because mutexes and conditions aren't abstract). */
struct _pthread_fastlock
{
- long status; /* "Free" or "taken" or head of waiting list */
+ long int status; /* "Free" or "taken" or head of waiting list */
int spinlock; /* For compare-and-swap emulation */
};
@@ -91,7 +91,7 @@ typedef struct
} pthread_rwlock_t;
# define PTHREAD_RWLOCK_INITIALIZER \
- { 0, 0, 0, {0, 0}, {0, 0}, \
+ { {0, 0}, 0, NULL, NULL, NULL, \
PTHREAD_RWLOCK_DEFAULT_NP, PTHREAD_PROCESS_PRIVATE }
#endif