[parisc-linux] [PATCH] oldsemaphore fixup for hppa (4/3?)

Carlos O'Donell carlos@baldric.uwo.ca
Fri, 10 Oct 2003 17:04:38 -0400


libc-alpha,

Wrote up the changelogs, reviewed them, and then forgot I had a small
patch to commit for oldsemaphore. This goes in with the first patch 1/3
that defines the generic libc changes required for linuxthreads to work
on HPPA.

Cheers,
Carlos
===

2003-10-10  Carlos O'Donell  <carlos@baldric.uwo.ca>

	* linuxthreads/oldsemaphore.c:	sem_spinlock in struct old_sem_t 
	is an __atomic_lock_t.

--- libc/linuxthreads/oldsemaphore.c	25 May 2001 07:38:39 -0000	1.11
+++ libc/linuxthreads/oldsemaphore.c	21 Apr 2003 23:53:24 -0000
@@ -31,7 +31,7 @@
 
 typedef struct {
     long int sem_status;
-    int sem_spinlock;
+    __atomic_lock_t sem_spinlock;
 } old_sem_t;
 
 extern int __old_sem_init (old_sem_t *__sem, int __pshared, unsigned int __value);