lexer: Include <unistd.h> to ensure 'read' is consistently replaced.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 8 Dec 2014 06:10:54 +0000 (22:10 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 8 Dec 2014 06:10:54 +0000 (22:10 -0800)
commit47f9412c378ef8e0bcce43566f72caa3b856580b
treef04458c58be8b846e1089b60f5588d89f79dd482
parentebf31eea2cfd8b49e8e83e2da931eecb9bf40ab1
lexer: Include <unistd.h> to ensure 'read' is consistently replaced.

On some platforms, Gnulib #defines read to rpl_read.  The lexer uses
an unreleated function pointer member named 'read' in struct
lex_reader_class.  It doesn't really matter whether this name gets
replaced with rpl_read as long as it always happens consistently.
Adding "#include <unistd.h>" to lexer.h should ensure that.

Reported by Harry Thijssen.
src/language/lexer/lexer.h