summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-05-09 04:59:41 +0000
committerderaadt <deraadt@openbsd.org>2007-05-09 04:59:41 +0000
commit58d01de3ccffffd62dbec08d42e80cc9429250cb (patch)
treea1c24ac688d642d9499de355535d8adb28a5fc56 /sys
parenttypo in license found by ray; verified repair using my old archives... (diff)
downloadwireguard-openbsd-58d01de3ccffffd62dbec08d42e80cc9429250cb.tar.xz
wireguard-openbsd-58d01de3ccffffd62dbec08d42e80cc9429250cb.zip
only supply ldt_alloc() and ldt_free() if USER_LDT
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/gdt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/gdt.c b/sys/arch/i386/i386/gdt.c
index c3c2cdf6c41..9a4f779d4f1 100644
--- a/sys/arch/i386/i386/gdt.c
+++ b/sys/arch/i386/i386/gdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdt.c,v 1.24 2005/11/19 02:18:00 pedro Exp $ */
+/* $OpenBSD: gdt.c,v 1.25 2007/05/09 04:59:41 deraadt Exp $ */
/* $NetBSD: gdt.c,v 1.28 2002/12/14 09:38:50 junyoung Exp $ */
/*-
@@ -294,6 +294,7 @@ tss_free(int sel)
gdt_put_slot(IDXSEL(sel));
}
+#ifdef USER_LDT
/*
* Caller must have pmap locked for both of these functions.
*/
@@ -316,3 +317,4 @@ ldt_free(struct pmap *pmap)
gdt_put_slot(slot);
}
+#endif /* USER_LDT */