diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2012-10-10 11:23:48 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2012-10-10 11:23:48 +0000 |
commit | e372a16a5b3761f3876fe7d1cd7e67740f9856cf (patch) | |
tree | ee9009c6d42f6b1bd9a15b2471aa0374d84d18ac /sys/arch/i386 | |
parent | 4de30929195beaafe2d5a1ef86bf5b5b10cd02cf (diff) |
Add __BEGIN_DECLS so that programs using C++ can use functions
defined in sysarch.h again, they were broken following the change
to NO_IMPLICIT_EXTERN_C. help/ok kettenis@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/include/sysarch.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/i386/include/sysarch.h b/sys/arch/i386/include/sysarch.h index e870866f464..763f27413b1 100644 --- a/sys/arch/i386/include/sysarch.h +++ b/sys/arch/i386/include/sysarch.h @@ -1,9 +1,11 @@ -/* $OpenBSD: sysarch.h,v 1.10 2011/11/07 15:41:33 guenther Exp $ */ +/* $OpenBSD: sysarch.h,v 1.11 2012/10/10 11:23:47 sthen Exp $ */ /* $NetBSD: sysarch.h,v 1.8 1996/01/08 13:51:44 mycroft Exp $ */ #ifndef _MACHINE_SYSARCH_H_ #define _MACHINE_SYSARCH_H_ +#include <sys/cdefs.h> + /* * Architecture specific syscalls (i386) */ @@ -43,6 +45,7 @@ struct i386_set_ioperm_args { }; #ifndef _KERNEL +__BEGIN_DECLS int i386_get_ldt(int, union descriptor *, int); int i386_set_ldt(int, union descriptor *, int); int i386_iopl(int); @@ -53,6 +56,7 @@ int i386_set_fsbase(void *); int i386_get_gsbase(void **); int i386_set_gsbase(void *); int sysarch(int, void *); +__END_DECLS #else uint32_t i386_get_threadbase(struct proc *, int); int i386_set_threadbase(struct proc *, uint32_t, int); |