summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-10-07 07:32:37 +0000
committerRoland McGrath <roland@gnu.org>1995-10-07 07:32:37 +0000
commit4ce2ebb93c573ad645a7af6b00e647fa90b6fae8 (patch)
tree2f4e0171b7cd9628885379bb289c50f0271169c4
parentc913ad9cb6f66af56e88c1395e08d4674fc32def (diff)
Protect against multiple inclusion.
Include cthreads.h and assert.h.
-rw-r--r--libthreads/rwlock.h9
1 files changed, 9 insertions, 0 deletions
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 <cthreads.h>
+#include <assert.h>
+
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 */