[local-time-devel] patch for ECL

Daniel Herring dherring at tentpost.com
Fri Jan 30 05:55:34 UTC 2009


ECL fails to load local-time.lisp due to the reader macro #_.

The attached patch conditions the macro so it isn't seen by ecl.

Note that there must be no space between #-ecl and #_.

Could this patch be applied?

Thanks,
Daniel
-------------- next part --------------
From dda26ecc5d38497cb31b80b5df6ab1e62ae9f147 Mon Sep 17 00:00:00 2001
From: D Herring <dherring at at.tentpost.dot.com>
Date: Thu, 29 Jan 2009 23:42:09 -0500
Subject: [PATCH] ECL bugfix

The #_ reader macro is undefined in CLHS.  In ECL it signals an error.
---
 src/local-time.lisp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/local-time.lisp b/src/local-time.lisp
index 90a57fa..4b84db3 100644
--- a/src/local-time.lisp
+++ b/src/local-time.lisp
@@ -916,7 +916,7 @@
   (sb-unix:unix-gettimeofday)
   #+ccl
   (ccl::rlet ((tv :timeval))
-    (#_gettimeofday tv (ccl::%null-ptr))
+    (#-ecl#_gettimeofday tv (ccl::%null-ptr))
     (values t (ccl::pref tv :timeval.tv_sec) (ccl::pref tv :timeval.tv_usec)))
   #-(or cmu sbcl ccl)
   (values t (get-universal-time) 0))
-- 
1.6.0.2



More information about the local-time-devel mailing list