--- plugins/vidinput_v4l2/vidinput_v4l2.cxx.orig	2010-04-03 18:29:42.000000000 -0400
+++ plugins/vidinput_v4l2/vidinput_v4l2.cxx	2010-04-03 18:32:23.000000000 -0400
@@ -116,7 +116,7 @@
 
 static struct {
   const char * colourFormat;
-#ifdef SOLARIS
+#if defined (SOLARIS) || defined (__FreeBSD__)
   uint32_t code;
 #else
   __u32 code;
@@ -344,7 +344,7 @@
   }
 
   struct {
-#ifdef SOLARIS
+#if defined (SOLARIS) || defined (__FreeBSD__)
     uint32_t code;
 #else
     __u32 code;
@@ -645,7 +645,7 @@
     if (v4l2_ioctl(videoFd, VIDIOC_QUERYBUF, &buf) < 0)
       break;
 
-#ifdef SOLARIS
+#if defined (SOLARIS) || defined (__FreeBSD__)
     ::v4l2_munmap((char*)videoBuffer[buf.index], buf.length);
 #else
     ::v4l2_munmap(videoBuffer[buf.index], buf.length);

