summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog11
-rwxr-xr-xconfigure3
-rw-r--r--parser.l11
3 files changed, 23 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ac69d95f..e4edd86c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/configure b/configure
index d0fd82c6..750b48c6 100755
--- a/configure
+++ b/configure
@@ -1419,8 +1419,7 @@ cat > conftest.c <<!
int main(void)
{
- struct tm tms = { 0 };
- timegm(&tms);
+ time_t (*ptgm)(struct tm *) = &timegm;
return 0;
}
!
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);