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



Tom Tromey <tromey@cygnus.com> writes:

> Is the problem that FreeBSD doesn't have a <malloc.h>?
> Or is it that <malloc.h> loses by printing a warning?

In all GNU packages it is solved this way:

#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#else
# ifdef HAVE_MALLOC_H
#  include <malloc.h>
# else
... define the prototypes here, if necessary ...
# endif
#endif


-- Uli
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



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