Index: Makefile
===================================================================
RCS file: /cvsroot/softdevice/softdevice/Makefile,v
retrieving revision 1.41
diff -u -r1.41 Makefile
--- Makefile	3 Apr 2007 20:21:04 -0000	1.41
+++ Makefile	6 Mar 2008 17:08:20 -0000
@@ -28,7 +28,11 @@
 PLUGINLIBDIR = ./PLUGINS/lib
 
 # for older file-utils, option -f had the same effect
+ifdef FREEBSD
+CPOPTS = -f
+else
 CPOPTS = --remove-destination
+endif
 
 -include config.mak
 
Index: VideoFilter.c
===================================================================
RCS file: /cvsroot/softdevice/softdevice/VideoFilter.c,v
retrieving revision 1.10
diff -u -r1.10 VideoFilter.c
--- VideoFilter.c	20 Feb 2008 08:05:42 -0000	1.10
+++ VideoFilter.c	6 Mar 2008 17:08:20 -0000
@@ -572,7 +572,11 @@
         memcpy(avpic_dest.data,dest->pixel,sizeof(avpic_dest.data));
         memcpy(avpic_dest.linesize,dest->stride,sizeof(avpic_dest.linesize));
 
+#ifdef FreeBSD
+        pp_postprocess((uint8_t **) avpic_src.data,
+#else
         pp_postprocess((const uint8_t **) avpic_src.data,
+#endif
                         avpic_src.linesize,
                         avpic_dest.data,
                         avpic_dest.linesize,
Index: setup-softlog.c
===================================================================
RCS file: /cvsroot/softdevice/softdevice/setup-softlog.c,v
retrieving revision 1.6
diff -u -r1.6 setup-softlog.c
--- setup-softlog.c	3 Apr 2007 19:24:31 -0000	1.6
+++ setup-softlog.c	6 Mar 2008 17:08:21 -0000
@@ -216,6 +216,8 @@
 {
 #ifdef __APPLE__ 
   return getpid();
+#elif (defined FreeBSD)
+  return reinterpret_cast<long>(::pthread_self());
 #else
   return syscall(__NR_gettid);
 #endif
