diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-06-04 21:41:59 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-06-04 21:41:59 -0700 |
commit | ed4c9902edb6a769c3faa1c835b045287578ccaa (patch) | |
tree | 898b0714c165e69f77f0f07cfc7a1d314773ada7 | |
parent | ea6cb9c2ea015bfc7744c8749dbf65788d1900bc (diff) | |
download | txr-ed4c9902edb6a769c3faa1c835b045287578ccaa.tar.gz txr-ed4c9902edb6a769c3faa1c835b045287578ccaa.tar.bz2 txr-ed4c9902edb6a769c3faa1c835b045287578ccaa.zip |
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.
-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); |