Index: trunk/MagicSoft/Cosy/videodev/Camera.cc
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Camera.cc	(revision 1111)
+++ trunk/MagicSoft/Cosy/videodev/Camera.cc	(revision 1266)
@@ -154,5 +154,5 @@
     // map file (device) into memory
     //
-    pMapBuffer = mmap(0, iBufferSize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
+    pMapBuffer = (char*)mmap(0, iBufferSize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
 
     if ((int)pMapBuffer == -1)
Index: trunk/MagicSoft/Cosy/videodev/Camera.h
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Camera.h	(revision 1111)
+++ trunk/MagicSoft/Cosy/videodev/Camera.h	(revision 1266)
@@ -10,4 +10,5 @@
 #include <TROOT.h>
 #include <pthread.h>
+#include <unistd.h>
 #include <sys/time.h>
 #endif
