summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/sysarch.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-02-03 20:46:18 +0000
committerbde <bde@FreeBSD.org>1998-02-03 20:46:18 +0000
commitee765b7a8622e8ebd918673df02b6e931a314103 (patch)
tree54ae84d75b556480e96678cda083bc3eedba50c5 /sys/i386/include/sysarch.h
parenta43d18c3febda7392587005439f6e9bcff8dd38c (diff)
downloadFreeBSD-src-ee765b7a8622e8ebd918673df02b6e931a314103.zip
FreeBSD-src-ee765b7a8622e8ebd918673df02b6e931a314103.tar.gz
Forward declare a union so that this file is self-sufficient.
Cleaned up ifdefs.
Diffstat (limited to 'sys/i386/include/sysarch.h')
-rw-r--r--sys/i386/include/sysarch.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/sys/i386/include/sysarch.h b/sys/i386/include/sysarch.h
index 80694a4..cf44523 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 <sys/cdefs.h>
+#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 <sys/cdefs.h>
+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_ */
OpenPOWER on IntegriCloud