tests: avoid a spurious failure on non-POSIX systems
authorPeter Rosin <peda@lysator.liu.se>
Wed, 29 May 2013 10:01:07 +0000 (12:01 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Wed, 29 May 2013 10:01:07 +0000 (12:01 +0200)
Fixes automake bug#14495.

* t/lex-header.sh: Make sure unistd.h isn't included.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
t/lex-header.sh

index 005ae86..0789af4 100644 (file)
@@ -55,6 +55,7 @@ cat > lexer.l << 'END'
 END
 
 cat > main.c <<'END'
+#define YY_NO_UNISTD_H 1
 #include "mylex.h"
 int main (void)
 {