diff options
author | jhb <jhb@FreeBSD.org> | 2003-05-13 16:59:46 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-05-13 16:59:46 +0000 |
commit | bc2a857823c575cc2864eafc2bbfe7c4c0d733b1 (patch) | |
tree | a3f137a7a6dc836703d6966958c183ddc0f1edbf /sys/i386 | |
parent | c8f885429c28e58cf75a312c4db24465adf3b789 (diff) | |
download | FreeBSD-src-bc2a857823c575cc2864eafc2bbfe7c4c0d733b1.zip FreeBSD-src-bc2a857823c575cc2864eafc2bbfe7c4c0d733b1.tar.gz |
Add some extra #ifdef stubs so that this compiles on 4.8.
Approved by: re (rwatson/bmah)
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/acpica/acpi_machdep.c | 4 | ||||
-rw-r--r-- | sys/i386/acpica/acpi_wakeup.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sys/i386/acpica/acpi_machdep.c b/sys/i386/acpica/acpi_machdep.c index 6d48588..ebe2d9b 100644 --- a/sys/i386/acpica/acpi_machdep.c +++ b/sys/i386/acpica/acpi_machdep.c @@ -52,7 +52,11 @@ static device_t acpi_dev; #include <machine/apm_bios.h> #include <machine/pc/bios.h> +#if __FreeBSD_version < 500000 +#include <i386/apm/apm.h> +#else #include <i386/bios/apm.h> +#endif static struct apm_softc apm_softc; diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c index 9f02e93..642eb10 100644 --- a/sys/i386/acpica/acpi_wakeup.c +++ b/sys/i386/acpica/acpi_wakeup.c @@ -58,6 +58,11 @@ #include "acpi_wakecode.h" +#if __FreeBSD_version < 500000 +#define vm_page_lock_queues() +#define vm_page_unlock_queues() +#endif + extern void initializecpu(void); static struct region_descriptor r_idt, r_gdt, *p_gdt; |