From 4cce3806993ba32fb6a4e44a3f573380451e4849 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sergi=20Hern=C3=A0ndez=20Juan?= <shernand@iri.upc.edu>
Date: Wed, 14 Jan 2015 11:48:48 +0000
Subject: [PATCH] Added the unistd.h header file. Explicitly added the openCV
 library version.

---
 src/CMakeLists.txt | 2 +-
 src/bumblebee.cpp  | 1 +
 src/ladybug.cpp    | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 28eed98..5cc0a64 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,7 +4,7 @@ SET(sources firewirecamera.cpp firewireserver.cpp firewireexceptions.cpp ptg_cam
 SET(headers firewirecamera.h firewireserver.h firewireexceptions.h ptg_camera.h bumblebee.h ladybug.h)
 
 #find the cv support and set HAVE_OPENCV_H for the conditional compilation
-FIND_PACKAGE(OpenCV)
+FIND_PACKAGE(OpenCV 2.4)
 
 if (OpenCV_FOUND) 
   if (${OpenCV_VERSION_MAJOR} GREATER 1)
diff --git a/src/bumblebee.cpp b/src/bumblebee.cpp
index 08d50e8..6cbcfe5 100755
--- a/src/bumblebee.cpp
+++ b/src/bumblebee.cpp
@@ -4,6 +4,7 @@
 #include <string.h>
 #include <fcntl.h>
 #include <math.h>
+#include <unistd.h>
 
 CBumblebee::CBumblebee(dc1394_t *firewire,uint64_t camera_id):CPTGCamera(firewire,camera_id)
 {
diff --git a/src/ladybug.cpp b/src/ladybug.cpp
index a0831ec..7364aaf 100755
--- a/src/ladybug.cpp
+++ b/src/ladybug.cpp
@@ -4,6 +4,7 @@
 #include <string.h>
 #include <fcntl.h>
 #include <math.h>
+#include <unistd.h>
 
 CLadyBug::CLadyBug(dc1394_t *firewire,uint64_t camera_id):CPTGCamera(firewire,camera_id)
 {
-- 
GitLab