From 80f5b2bf3bc7b89521dc647a1a78346c7feaa98e Mon Sep 17 00:00:00 2001 From: jjgarcia Date: Tue, 8 Nov 2005 13:17:52 +0000 Subject: [PATCH] Ported to OpenBSD/x86. --- src/CHANGELOG | 4 ++++ src/aclocal.m4 | 1 + src/c/file.d | 2 +- src/configure | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/CHANGELOG b/src/CHANGELOG index 8f9f0e1ba..ce0230868 100644 --- a/src/CHANGELOG +++ b/src/CHANGELOG @@ -1,6 +1,10 @@ ECL 0.9h ======== +* Platforms: + + - Ported to OpenBSD/x86. Might also work on other architectures. + * Errors fixed: - The garbage collection of FASL files had been deactivated by the use of diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 7b513b6a2..f49dcabfe 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -211,6 +211,7 @@ case "${host_os}" in clibs="" ;; openbsd*) + enable_boehm=no thehost='openbsd' SHARED_LDFLAGS="-shared ${LDFLAGS}" BUNDLE_LDFLAGS="-shared ${LDFLAGS}" diff --git a/src/c/file.d b/src/c/file.d index eff9fde91..26ae3cd11 100644 --- a/src/c/file.d +++ b/src/c/file.d @@ -2821,7 +2821,7 @@ ecl_make_stream_from_fd(cl_object fname, int fd, enum ecl_smmode smm) stream->stream.object1 = fname; /* not really used */ stream->stream.int0 = stream->stream.int1 = 0; #if !defined(GBC_BOEHM) - fp->_IO_buf_base = NULL; /* BASEFF */; + setbuf(fp, NULL); setbuf(fp, stream->stream.buffer = cl_alloc_atomic(BUFSIZ)); #endif stream->stream.char_stream_p = 1; diff --git a/src/configure b/src/configure index c39205ddb..22cd21310 100755 --- a/src/configure +++ b/src/configure @@ -3525,6 +3525,7 @@ case "${host_os}" in clibs="" ;; openbsd*) + enable_boehm=no thehost='openbsd' SHARED_LDFLAGS="-shared ${LDFLAGS}" BUNDLE_LDFLAGS="-shared ${LDFLAGS}"