chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Re: latest (rev 15708) build on OpenBSD


From: David N Murray
Subject: Re: [Chicken-users] Re: latest (rev 15708) build on OpenBSD
Date: Sat, 05 Sep 2009 12:53:42 -0400 (EDT)

On Sep 4, felix scribed:

>
> Does the C library on OpenBSD handle "+inf." in it's "strtol"? It looks
> like it doesn't (see convert_string_to_number in runtime.c).
>

No, it doesn't.  Is this the fix?  All tests run after I applied this.

--- runtime.c.~1~       Wed Sep  2 15:58:55 2009
+++ runtime.c   Sat Sep  5 12:51:28 2009
@@ -7680,7 +7680,7 @@
   C_word n;
   C_char *eptr, *eptr2;
   double fn;
-#if defined(__CYGWIN__) || defined(__MINGW32__)
+#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__OpenBSD__)
   int len = C_strlen(str);

   if(len >= 4) {

Thanks,
Dave





reply via email to

[Prev in Thread] Current Thread [Next in Thread]