summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-12-28 17:14:34 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-12-28 17:14:34 +0000
commiteae1244b641aac9192c14ebf08a050c6e3df3dd3 (patch)
treeba0d0a8a59bec0d4ee10bfe9482bf0c3a9f95235
parent3d316bab4af08e460ae5ada182a9926606f0cbe1 (diff)
multiple include protection
-rw-r--r--sys/sys/rwlock.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/rwlock.h b/sys/sys/rwlock.h
index 1c25afe5cf8..247bef79286 100644
--- a/sys/sys/rwlock.h
+++ b/sys/sys/rwlock.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rwlock.h,v 1.1 2003/11/18 06:11:10 tedu Exp $ */
+/* $OpenBSD: rwlock.h,v 1.2 2003/12/28 17:14:33 tedu Exp $ */
/*
* Copyright (c) 2002 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -65,6 +65,9 @@
* (XXX - the rest of the API for this is not invented yet).
*/
+#ifndef SYS_RWLOCK_H
+#define SYS_RWLOCK_H
+
struct rwlock {
__volatile unsigned long rwl_owner;
};
@@ -96,3 +99,4 @@ void rw_exit_write(struct rwlock *);
void rw_enter_wait(struct rwlock *, struct proc *, int);
void rw_exit_waiters(struct rwlock *, unsigned long);
+#endif