Description: Include unistd.h since it is required for gcc-4.7
 The function isatty and gethostname are defined in unistd.h.
 They are used by faust, but faust does not include unistd.h.
Author: Mario Lang <mlang@debian.org>
Bug-Debian: http://bugs.debian.org/667163
Forwarded: no

--- faust-0.9.46.orig/compiler/parser/faustlexer.cpp
+++ faust-0.9.46/compiler/parser/faustlexer.cpp
@@ -783,8 +783,7 @@ char *yytext;
 #line 6 "parser/faustlexer.l"
 #include "tree.hh"
 #include "faustparser.hpp"
-#define YY_NO_UNISTD_H 1
-extern int isatty (int );
+#include <unistd.h>
 
 
 
--- faust-0.9.46.orig/compiler/parser/faustlexer.l
+++ faust-0.9.46/compiler/parser/faustlexer.l
@@ -5,8 +5,7 @@
 %{
 #include "tree.hh"
 #include "faustparser.hpp"
-#define YY_NO_UNISTD_H 1
-extern int isatty (int );
+#include <unistd.h>
 %}
 
 DIGIT    [0-9]
--- faust-0.9.46.orig/architecture/osclib/faust/src/nodes/RootNode.cpp
+++ faust-0.9.46/architecture/osclib/faust/src/nodes/RootNode.cpp
@@ -23,6 +23,7 @@
 
 #include <string>
 #include <sstream>
+#include <unistd.h>
 
 #include "RootNode.h"
 #include "Message.h"
