$NetBSD: patch-ac,v 1.4 2005/11/04 21:09:15 dbj Exp $

--- vl.c.orig	2005-04-27 16:52:05.000000000 -0400
+++ vl.c
@@ -34,7 +34,11 @@
 #include <sys/times.h>
 #include <sys/wait.h>
 #include <termios.h>
+#ifdef __APPLE__
+#include "fakepoll.h"
+#else
 #include <sys/poll.h>
+#endif
 #include <sys/mman.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
@@ -43,8 +47,10 @@
 #ifdef _BSD
 #include <sys/stat.h>
 #ifndef __APPLE__
+#ifndef _BSD
 #include <libutil.h>
 #endif
+#endif
 #else
 #include <linux/if.h>
 #include <linux/if_tun.h>
@@ -68,7 +74,7 @@
 
 #ifdef CONFIG_SDL
 #ifdef __APPLE__
-#include <SDL/SDL.h>
+#include <SDL.h>
 #endif
 #endif /* CONFIG_SDL */
 
