$NetBSD$

--- vl.c.orig	2007-07-19 22:00:53.000000000 +0200
+++ vl.c	2007-07-19 22:23:29.000000000 +0200
@@ -44,7 +44,7 @@
 #include <arpa/inet.h>
 #ifdef _BSD
 #include <sys/stat.h>
-#ifndef __APPLE__
+#ifndef _BSD
 #include <libutil.h>
 #endif
 #elif defined (__GLIBC__) && defined (__FreeBSD_kernel__)
@@ -1953,6 +1953,9 @@
 
 static int pp_ioctl(CharDriverState *chr, int cmd, void *arg)
 {
+#ifdef __NetBSD__
+    return ENOTSUP;
+#endif
     ParallelCharDriver *drv = chr->opaque;
     int fd = drv->fd;
     uint8_t b;
@@ -2041,6 +2044,9 @@
 
 static CharDriverState *qemu_chr_open_pp(const char *filename)
 {
+#ifdef __NetBSD__
+    return ENOTSUP;
+#endif
     CharDriverState *chr;
     ParallelCharDriver *drv;
     int fd;
