diff -ur OpenCV-2.3.1.orig/modules/highgui/src/grfmt_tiff.cpp OpenCV-2.3.1/modules/highgui/src/grfmt_tiff.cpp --- OpenCV-2.3.1.orig/modules/highgui/src/grfmt_tiff.cpp 2012-04-29 13:13:07.922892187 +0200 +++ OpenCV-2.3.1/modules/highgui/src/grfmt_tiff.cpp 2012-04-29 13:13:24.986679361 +0200 @@ -47,6 +47,7 @@ #include "precomp.hpp" #include "grfmt_tiff.hpp" +#include "unistd.h" namespace cv { diff -ur OpenCV-2.3.1.orig/modules/highgui/src/window_QT.h OpenCV-2.3.1/modules/highgui/src/window_QT.h --- OpenCV-2.3.1.orig/modules/highgui/src/window_QT.h 2012-04-29 14:02:40.372751730 +0200 +++ OpenCV-2.3.1/modules/highgui/src/window_QT.h 2012-04-29 14:03:02.012465635 +0200 @@ -42,6 +42,7 @@ #include "precomp.hpp" +#include "unistd.h" #if defined( HAVE_QT_OPENGL ) #include