From ed4c9902edb6a769c3faa1c835b045287578ccaa Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 4 Jun 2014 21:41:59 -0700 Subject: Changes for FreeBSD 9. * configure: Use pointer-based test for timegm, because -Werror=implicit-function-declaration does not work in the gcc 4.2 used on FreeBSD 9. * parser.l: Check for Flex 2.5.9 and earlier which don't have yylex_destroy. Thanks to Marcus Breiing. --- parser.l | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'parser.l') diff --git a/parser.l b/parser.l index 15e7958b..1fa7ac38 100644 --- a/parser.l +++ b/parser.l @@ -71,6 +71,17 @@ val form_to_ln_hash; static val prepared_error_message; +#define FLEX_NUM_VERSION 1000*FLEX_MAJOR_VERSION + \ + 100*FLEX_MINOR_VERSION + \ + FLEX_SUBMINOR_VERSION + +#if FLEX_NUM_VERSION < 20509 +int yylex_destroy(void) +{ + return 0; +} +#endif + void yyerror(const char *s) { yyerrorf(lit("~a"), string_utf8(s), nao); -- cgit v1.2.3