From 4a57a63458ba2c0c11fdcd24f6cf2fc15957135a Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 24 Sep 2016 18:23:58 +0200 Subject: Fix missing fileno() declaration. Add #define _XOPEN_SOURCE 600, the %top{...} flex macro requires flex 2.5.30 or newer. --- README.git | 9 +++------ rcfile_l.l | 5 +++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.git b/README.git index acbb1677..59fae997 100644 --- a/README.git +++ b/README.git @@ -10,11 +10,8 @@ The prerequisite packages are: - GNU automake >= 1.8 - GNU gettext >= 0.14.3 - GNU m4 -- bison or yacc -- flex or lex - -On FreeBSD, install the autoconf, automake and gettext-tools ports (all -from the devel/ category). +- GNU bison +- GNU flex >= 2.5.30 After you have everything installed, type: @@ -30,4 +27,4 @@ $ make (become root) # make install-strip --- Matthias Andree, 2016-04-16 +-- Matthias Andree, 2016-09-24 diff --git a/rcfile_l.l b/rcfile_l.l index c7e49fea..996197d1 100644 --- a/rcfile_l.l +++ b/rcfile_l.l @@ -1,3 +1,8 @@ +%top{ +/* make fileno() known */ +#define _XOPEN_SOURCE 600 +} + %{ /* -- cgit v1.2.3