From cea78323ac70b1e19dccb348a5532369cfb123b2 Mon Sep 17 00:00:00 2001
From: Frederic Bron <frederic.bron@m4x.org>
Date: Wed, 11 Jul 2012 07:04:36 +0200
Subject: [PATCH] added missing #inlude <unistd.h> for use with g++ 4.7

---
 flower/include/yaffut.hh |    3 +++
 flower/test-file-path.cc |    1 +
 2 files changed, 4 insertions(+)

diff --git a/flower/include/yaffut.hh b/flower/include/yaffut.hh
index 0da0180..38fba30 100644
--- a/flower/include/yaffut.hh
+++ b/flower/include/yaffut.hh
@@ -395,6 +395,9 @@ void assert_throw (void (*pf) (), const char *at = "")
 #ifdef YAFFUT_MAIN
 
 #include <iostream>
+#include <sys/types.h>
+#include <unistd.h>
+
 
 int main (int argc, const char *argv[])
 {
diff --git a/flower/test-file-path.cc b/flower/test-file-path.cc
index 99366a1..a20364b 100644
--- a/flower/test-file-path.cc
+++ b/flower/test-file-path.cc
@@ -1,6 +1,7 @@
 #include "file-path.hh"
 
 #include <limits.h>
+#include <unistd.h>
 
 #include "yaffut.hh"
 #include "config.hh"
-- 
1.7.10.4

