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

2013-05-29 Thread Peter Rosin
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 <<'

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

2013-05-29 Thread Stefano Lattarini
On 05/29/2013 11:43 AM, Peter Rosin wrote: > On 2013-05-29 11:06, Stefano Lattarini wrote: >> On 05/29/2013 10:39 AM, Peter Rosin wrote: >>> On 2013-05-29 02:08, Peter Rosin wrote: Hi! When t/lex-header.sh tries to compile main.c on the master branch, it fails like this snippet

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

2013-05-29 Thread Peter Rosin
On 2013-05-29 11:06, Stefano Lattarini wrote: > On 05/29/2013 10:39 AM, Peter Rosin wrote: >> On 2013-05-29 02:08, Peter Rosin wrote: >>> Hi! >>> >>> When t/lex-header.sh tries to compile main.c on the master branch, it fails >>> like this snippet below, since MSVC does not have unistd.h. I suppose

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

2013-05-29 Thread Stefano Lattarini
On 05/29/2013 10:39 AM, Peter Rosin wrote: > On 2013-05-29 02:08, Peter Rosin wrote: >> Hi! >> >> When t/lex-header.sh tries to compile main.c on the master branch, it fails >> like this snippet below, since MSVC does not have unistd.h. I suppose main.c >> should add >> >> #define YY_NO_UNISTD

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

2013-05-29 Thread Peter Rosin
On 2013-05-29 02:08, Peter Rosin wrote: > Hi! > > When t/lex-header.sh tries to compile main.c on the master branch, it fails > like this snippet below, since MSVC does not have unistd.h. I suppose main.c > should add > > #define YY_NO_UNISTD_H 1 > > before it includes mylex.h? Or is this

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

2013-05-28 Thread Peter Rosin
Hi! When t/lex-header.sh tries to compile main.c on the master branch, it fails like this snippet below, since MSVC does not have unistd.h. I suppose main.c should add #define YY_NO_UNISTD_H 1 before it includes mylex.h? Or is this something else? I know very little about lexers... Chee