diff -urNp --exclude='*.d' ./configure ../../../qemu-0.9.1/configure --- ./configure 2009-01-22 08:11:11.000000000 +0900 +++ ../../../qemu-0.9.1/configure 2009-01-19 15:50:17.000000000 +0900 @@ -145,6 +145,9 @@ dragonfly="yes" NetBSD) bsd="yes" oss="yes" +if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then + kqemu="yes" +fi ;; OpenBSD) bsd="yes" diff -urNp --exclude='*.d' ./kqemu.c ../../../qemu-0.9.1/kqemu.c --- ./kqemu.c 2008-01-07 04:38:42.000000000 +0900 +++ ../../../qemu-0.9.1/kqemu.c 2009-01-22 08:09:22.000000000 +0900 @@ -27,7 +27,7 @@ #include #include #endif -#ifdef HOST_SOLARIS +#if defined(HOST_SOLARIS) || defined(__NetBSD__) #include #endif #include diff -urNp --exclude='*.d' ./osdep.c ../../../qemu-0.9.1/osdep.c --- ./osdep.c 2008-01-07 04:38:42.000000000 +0900 +++ ../../../qemu-0.9.1/osdep.c 2009-01-22 08:10:08.000000000 +0900 @@ -28,7 +28,7 @@ #include #include #include -#ifdef HOST_SOLARIS +#if defined(HOST_SOLARIS) || defined(__NetBSD__) #include #include #endif @@ -83,7 +83,9 @@ void qemu_vfree(void *ptr) #if defined(USE_KQEMU) +#ifndef __NetBSD__ #include +#endif #include #include @@ -94,7 +96,7 @@ static void *kqemu_vmalloc(size_t size) const char *tmpdir; char phys_ram_file[1024]; void *ptr; -#ifdef HOST_SOLARIS +#if defined(HOST_SOLARIS) || defined(__NetBSD__) struct statvfs stfs; #else struct statfs stfs; @@ -103,7 +105,7 @@ static void *kqemu_vmalloc(size_t size) if (phys_ram_fd < 0) { tmpdir = getenv("QEMU_TMPDIR"); if (!tmpdir) -#ifdef HOST_SOLARIS +#if defined(HOST_SOLARIS) || defined(__NetBSD__) tmpdir = "/tmp"; if (statvfs(tmpdir, &stfs) == 0) { #else