Suggested port: open source Xara Xtreme
jasone at FreeBSD.org
Tue Mar 21 16:03:50 UTC 2006
Vasil Dimov wrote:
> On Tue, Mar 21, 2006 at 03:20:58PM +0100, pfgshield-freebsd at yahoo.com wrote:
>>--- Vasil Dimov <vd at FreeBSD.org> ha scritto:
> In spite of the scary errors I continued hacking and hit some serious
> issue: they use a function malloc_usable_size() which is defined like
> this on linux, but unavailable for FreeBSD:
> /* Report the number of usable allocated bytes associated with allocated
> chunk __ptr. */
> extern size_t malloc_usable_size __MALLOC_P ((__malloc_ptr_t __ptr));
> Any ideas for alternatives?
FreeBSD doesn't have malloc_usable_size(). In general, it isn't needed
(and it is definitely a non-standard function). You should be able to
restructure the Xara Xtreme source to avoid its use.
For what it's worth, we could add a similar function to FreeBSD with
minimal effort, but if we did so, I think we'd want to call it something
like malloc_size_np() and put its prototype in malloc_np.h.
More information about the freebsd-ports