Subject: Re: bug#14495: unistd.h problem in t/lex-header.sh

From: Peter Rosin <[email-masked]>
Date: Wed, 29 May 2013 12:08:40 +0200

On 2013-05-29 11:51, Stefano Lattarini wrote:
> On 05/29/2013 11:43 AM, Peter Rosin wrote:
>> diff --git a/t/lex-header.sh b/t/lex-header.sh
>> index 005ae86..0789af4 100644
>> --- a/t/lex-header.sh
>> +++ b/t/lex-header.sh
>> @@ -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)
>>  {
>>

Pushing this:

>From a4598c57d3dded53851f1319f23d187b2c8132d3 Mon Sep 17 00:00:00 2001
From: Peter Rosin <[email-masked]>
Date: Wed, 29 May 2013 12:01:07 +0200
Subject: [PATCH 1/2] tests: avoid a spurious failure on non-POSIX systems

Fixes automake bug#14495.

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

Signed-off-by: Peter Rosin <[email-masked]>
---
 t/lex-header.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/t/lex-header.sh b/t/lex-header.sh
index 005ae86..0789af4 100644
--- a/t/lex-header.sh
+++ b/t/lex-header.sh
@@ -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)
 {
-- 
1.7.9