diff options
author | 1997-11-14 23:40:03 +0000 | |
---|---|---|
committer | 1997-11-14 23:40:03 +0000 | |
commit | 2f7f6e58cb95eb4843f3fa9a2da52646e08b813a (patch) | |
tree | 90d46c88e1e05d9f537d23659011b1256068456c | |
parent | pk: Expand on shared object's `.init' functions a bit, and mention (diff) | |
download | wireguard-openbsd-2f7f6e58cb95eb4843f3fa9a2da52646e08b813a.tar.xz wireguard-openbsd-2f7f6e58cb95eb4843f3fa9a2da52646e08b813a.zip |
Make user-mode C++ compilers happy by #ifdef around inline functions
-rw-r--r-- | sys/sys/simplelock.h | 6 |
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_ */ |