hyln9 / ikarus

Optimizing incremental native-code compiler for R6RS scheme. This is a forked repository.
https://launchpad.net/ikarus
Other
5 stars 0 forks source link

ikarus-errno.c needs a small change to compile on FreeBSD (possible patch included) #211

Closed hyln9 closed 10 years ago

hyln9 commented 10 years ago

FreeBSD doesn't do SysV STREAM, and so doesn't have the XSI-related errno values in errno.h. This is easy to work around, because made-up values are OK, because it doesn't look as though ikarus needs them anyway, and they won't be generated by the system. So this patch (or something like it) is all that I needed to get ikarus to compile on my FreeBSD/amd64 system. Nice work! I haven't used it in anger yet, but it seems to start up, and runs the benchmarks (with some errors and odd output...)

This patch is against: Ikarus Scheme version 0.0.4-rc1+, 64-bit (revision 1827, build 2009-07-12) Copyright (c) 2006-2009 Abdulaziz Ghuloum downloaded using bzr on Saturday 11th.

Here's the patch:

--- ikarus.dev/src/ikarus-errno.c.orig 2009-07-12 13:37:04.000000000 +1000 +++ ikarus.dev/src/ikarus-errno.c 2009-07-12 13:43:26.000000000 +1000 @@ -31,6 +31,15 @@

define ECANCELED 140

endif

+#ifndef ENODATA +/* These errno names relate to STREAMs, which are optional in

Launchpad Details: #LP399080 Andrew Reilly - 2009-07-13 21:07:49 -0400

hyln9 commented 10 years ago

Fixed in revision 1851. Thanks.

Launchpad Details: #LPC Abdulaziz Ghuloum - 2009-08-26 12:14:34 -0400