Index: qemu/vl.c @@ -1727,6 +1728,7 @@ chr->chr_ioctl = pp_ioctl; return chr; } +#endif /* defined(__linux__) */ #else CharDriverState *qemu_chr_open_pty(void) @@ -2334,7 +2334,7 @@ } #endif -#if defined(__linux__) || defined(__sun__) +#if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) static CharDriverState *qemu_chr_open_pty(void) { struct termios tty; @@ -3036,7 +3036,7 @@ return qemu_chr_open_pp(filename); } else #endif -#if defined(__linux__) || defined(__sun__) +#if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) if (strstart(filename, "/dev/", NULL)) { return qemu_chr_open_tty(filename); } else @@ -8423,6 +8423,11 @@ nb_nics = 0; /* default mac address of the first network interface */ +#ifdef __FreeBSD__ + if (modfind("aio") == -1) + fprintf(stderr, "warning: aio not (kld)loaded, may cause `Invalid system call' traps on disk IO\n"); +#endif + optind = 1; for(;;) { if (optind >= argc)