This is for automake bug#10324.
* tests/silent-lex-generic.test (foo.l): Add a dummy #define of
YY_NO_UNISTD_H, so that the generated foo.c file won't require
unistd.h to be present (it is not present when compiling with,
e.g., MSVC 9).
+2011-12-20 Peter Rosin <peda@lysator.liu.se>
+
+ tests: fix spurious failure on systems lacking unistd.h
+ This is for automake bug#10324.
+ * tests/silent-lex-generic.test (foo.l): Add a dummy #define of
+ YY_NO_UNISTD_H, so that the generated foo.c file won't require
+ unistd.h to be present (it is not present when compiling with,
+ e.g., MSVC 9).
+
2011-12-16 Stefano Lattarini <stefano.lattarini@gmail.com>
test defs: hack to support autoconf-wrapper programs
EOF
cat > foo.l <<'EOF'
+%{
+/* avoid non-ANSI #include of unistd.h */
+#define YY_NO_UNISTD_H 1
+%}
%%
"END" return EOF;
.