From 318ed3ed7a4392a5aadb43407a3750773fa68df6 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 3 Feb 1998 20:46:18 +0000 Subject: [PATCH] Forward declare a union so that this file is self-sufficient. Cleaned up ifdefs. --- sys/amd64/include/sysarch.h | 21 ++++++++++----------- sys/i386/include/sysarch.h | 21 ++++++++++----------- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/sys/amd64/include/sysarch.h b/sys/amd64/include/sysarch.h index 80694a4bc1c..cf44523a5d6 100644 --- a/sys/amd64/include/sysarch.h +++ b/sys/amd64/include/sysarch.h @@ -30,16 +30,14 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sysarch.h,v 1.6 1997/02/22 09:35:18 peter Exp $ + * $Id: sysarch.h,v 1.7 1997/08/09 00:03:22 dyson Exp $ */ /* * Architecture specific syscalls (i386) */ #ifndef _MACHINE_SYSARCH_H_ -#define _MACHINE_SYSARCH_H_ 1 - -#include +#define _MACHINE_SYSARCH_H_ #define I386_GET_LDT 0 #define I386_SET_LDT 1 @@ -49,14 +47,15 @@ /* xxxxx */ #define I386_VM86 6 -#ifdef KERNEL -/* nothing here yet... */ -#else /* not KERNEL */ -__BEGIN_DECLS +#ifndef KERNEL +#include +union descriptor; + +__BEGIN_DECLS int i386_get_ldt __P((int, union descriptor *, int)); int i386_set_ldt __P((int, union descriptor *, int)); - __END_DECLS -#endif /* not KERNEL */ -#endif /* _MACHINE_SYSARCH_H_ */ +#endif /* !KERNEL */ + +#endif /* !_MACHINE_SYSARCH_H_ */ diff --git a/sys/i386/include/sysarch.h b/sys/i386/include/sysarch.h index 80694a4bc1c..cf44523a5d6 100644 --- a/sys/i386/include/sysarch.h +++ b/sys/i386/include/sysarch.h @@ -30,16 +30,14 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sysarch.h,v 1.6 1997/02/22 09:35:18 peter Exp $ + * $Id: sysarch.h,v 1.7 1997/08/09 00:03:22 dyson Exp $ */ /* * Architecture specific syscalls (i386) */ #ifndef _MACHINE_SYSARCH_H_ -#define _MACHINE_SYSARCH_H_ 1 - -#include +#define _MACHINE_SYSARCH_H_ #define I386_GET_LDT 0 #define I386_SET_LDT 1 @@ -49,14 +47,15 @@ /* xxxxx */ #define I386_VM86 6 -#ifdef KERNEL -/* nothing here yet... */ -#else /* not KERNEL */ -__BEGIN_DECLS +#ifndef KERNEL +#include +union descriptor; + +__BEGIN_DECLS int i386_get_ldt __P((int, union descriptor *, int)); int i386_set_ldt __P((int, union descriptor *, int)); - __END_DECLS -#endif /* not KERNEL */ -#endif /* _MACHINE_SYSARCH_H_ */ +#endif /* !KERNEL */ + +#endif /* !_MACHINE_SYSARCH_H_ */ -- 2.45.2