From 4ce2ebb93c573ad645a7af6b00e647fa90b6fae8 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 7 Oct 1995 07:32:37 +0000 Subject: Protect against multiple inclusion. Include cthreads.h and assert.h. --- libthreads/rwlock.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libthreads/rwlock.h') diff --git a/libthreads/rwlock.h b/libthreads/rwlock.h index 28f99979..4f208424 100644 --- a/libthreads/rwlock.h +++ b/libthreads/rwlock.h @@ -16,6 +16,12 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifndef _rwlock_h +#define _rwlock_h + +#include +#include + struct rwlock { struct mutex master; @@ -96,3 +102,6 @@ rwlock_init (struct rwlock *lock) #define RWLOCK_INITIALIZER \ { MUTEX_INITIALIZER, CONDITION_INITIALIZER, 0, 0, 0 } + + +#endif /* _rwlock_h */ -- cgit v1.2.3