parse: Don't #include <unistd.h>
authorScott D Phillips <scott.d.phillips@intel.com>
Thu, 17 Nov 2016 18:35:50 +0000 (10:35 -0800)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 18 Nov 2016 12:13:53 +0000 (09:13 -0300)
It isn't needed and isn't present in non-posix environments like windows
with MSVC or mingw.

https://bugzilla.gnome.org/show_bug.cgi?id=774641

ges/ges-command-line-formatter.c
ges/parse.l

index ff17e32..beaf244 100644 (file)
@@ -23,6 +23,7 @@
 #include "ges/ges-structured-interface.h"
 #include "ges-structure-parser.h"
 #include "ges-internal.h"
+#define YY_NO_UNISTD_H
 #include "ges-parse-lex.h"
 
 struct _GESCommandLineFormatterPrivate
index 04f533a..b846f40 100644 (file)
@@ -9,6 +9,7 @@
 %option extra-type="GESStructureParser *"
 %option never-interactive
 %option noinput
+%option nounistd
 
 CLIP           [ ]+\+clip[ ]+
 TEST_CLIP       [ ]+\+test-clip[ ]+