diff options
-rw-r--r-- | ChangeLog | 11 | ||||
-rwxr-xr-x | configure | 3 | ||||
-rw-r--r-- | parser.l | 11 |
3 files changed, 23 insertions, 2 deletions
@@ -1,5 +1,16 @@ 2014-06-04 Kaz Kylheku <kaz@kylheku.com> + 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. + +2014-06-04 Kaz Kylheku <kaz@kylheku.com> + * configure: Changes for building on Solaris 10 using the /usr/bin/xpg4/sh shell. Solaris' /bin/sh does not like test -e. Adding break to the new shell existence testing loop so we @@ -1419,8 +1419,7 @@ cat > conftest.c <<! int main(void) { - struct tm tms = { 0 }; - timegm(&tms); + time_t (*ptgm)(struct tm *) = &timegm; return 0; } ! @@ -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); |