summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-vl.c
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2008-03-21 17:31:52 +0000
committerJuergen Lock <nox@FreeBSD.org>2008-03-21 17:31:52 +0000
commite2f267539d0b5951c542e651f4672c14b5a9ac84 (patch)
tree6bcf28c0e3e5d44254bd5667ba6ca4d296e081fc /emulators/qemu-devel/files/patch-vl.c
parent- Get rid of USE_XLIB (diff)
- Add runtime warning when aio is not loaded
- Bump PORTREVISION Requested by: several people on freebsd-emulation@
Notes
Notes: svn path=/head/; revision=209544
Diffstat (limited to 'emulators/qemu-devel/files/patch-vl.c')
-rw-r--r--emulators/qemu-devel/files/patch-vl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-vl.c b/emulators/qemu-devel/files/patch-vl.c
index 9acd842bbda6..ec763da3848a 100644
--- a/emulators/qemu-devel/files/patch-vl.c
+++ b/emulators/qemu-devel/files/patch-vl.c
@@ -33,3 +33,15 @@ Index: qemu/vl.c
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)