--- grammar/lexer.l.orig 2014-10-02 10:13:48 UTC +++ grammar/lexer.l @@ -31,7 +31,7 @@ %{ #include "config.h" #include "parserif.h" -extern char *strdup(__const char*); /* somehow we may not get this from string.h... */ +//extern char *strdup(__const char*); /* somehow we may not get this from string.h... */ %} %option noyywrap nodefault case-insensitive yylineno @@ -92,7 +92,7 @@ extern int yydebug; /* somehow, I need these prototype even though the headers are * included. I guess that's some autotools magic I don't understand... */ -#if !defined(__FreeBSD__) +#if !defined(__FreeBSD__) && !defined(__BSDSUniX__) int fileno(FILE *stream); #endif