Re: RTLD_NOW [FreeBSD]; libgnome/gnome-parse.c patch



On Tue, 5 May 1998, Josh Sled wrote:
> This and the next post contain patches for the #include <malloc.h> problem
> I've been having with FreeBSD 2.2.2.  The problem has also cropped up with
> gnome-core [in help-browser/HTParse.c]... there's got to be a better way
> around this... I'm thinking autoconf, but I don't know it well enough to
> try and fix it this way.

I think the right thing to do is to use the HAVE_MALLOC_H define from
the configure-generated <config.h>, e.g.:

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif

-- 
Dan McGuirk
mcguirk@indirect.com



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