summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1997-11-14 23:40:04 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1997-11-14 23:40:04 +0000
commit19520f2d6b000945e7f1eebaaf2c459f0794d36c (patch)
tree044fc8e3533b5c404ad37466aba898d10fc3cb70 /sys
parent3f69fed9bb45eca3dd839528883a8e096fea4df8 (diff)
Make user-mode C++ compilers happy by #ifdef around inline functions
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/simplelock.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/simplelock.h b/sys/sys/simplelock.h
index abdc7948c8e..af3d60ac2cc 100644
--- a/sys/sys/simplelock.h
+++ b/sys/sys/simplelock.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: simplelock.h,v 1.4 1997/11/07 10:25:42 niklas Exp $ */
+/* $OpenBSD: simplelock.h,v 1.5 1997/11/14 23:40:03 csapuntz Exp $ */
#ifndef _SIMPLELOCK_H_
#define _SIMPLELOCK_H_
@@ -15,6 +15,8 @@ struct simplelock {
int lock_data;
};
+#ifdef _KERNEL
+
#ifndef NCPUS
#define NCPUS 1
#endif
@@ -85,4 +87,6 @@ simple_unlock(lkp)
}
#endif /* NCPUS > 1 */
+#endif /* _KERNEL */
+
#endif /* !_SIMPLELOCK_H_ */