[racket-dev] memory consumption (bug?) on Debian/kFreeBSD-i386
I think I'm asking the wrong question. I should instead ask:
What does the man page for fpsetmask() say should be #included?
(The switch to #include <ieeefp.h> was based on a FreeBSD man page.)
At Thu, 28 Apr 2011 21:01:11 -0300, David Bremner wrote:
> On Thu, 28 Apr 2011 09:07:28 -0600, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> > Looks like it should really be
> >
> > #ifdef FREEBSD_CONTROL_387
> > #include <ieeefp.h>
> > #endif
> >
> > Does that work on your machine?
>
> It works with the additional patch
>
> From a8be877b89891a0c19a99b37a6218057e04f5456 Mon Sep 17 00:00:00 2001
> From: David Bremner <bremner at debian.org>
> Date: Thu, 28 Apr 2011 20:00:37 -0300
> Subject: [PATCH] Add cdefs.h and param.h before ieeefp.h. Change ieeefp.h to
> machine/ieeefp.h
>
> ---
> src/racket/src/number.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/src/racket/src/number.c b/src/racket/src/number.c
> index fea2871..1dc38e5 100644
> --- a/src/racket/src/number.c
> +++ b/src/racket/src/number.c
> @@ -187,7 +187,9 @@ READ_ONLY Scheme_Object *scheme_single_inf_object,
> *scheme_single_minus_inf_obje
>
>
> #ifdef FREEBSD_CONTROL_387
> -# include <ieeefp.h>
> +# include <sys/cdefs.h>
> +# include <sys/param.h>
> +# include <machine/ieeefp.h>
> #endif
> #ifdef LINUX_CONTROL_387
> # include <fpu_control.h>
> --
> 1.7.4.4