[mythtv] Ticket #3062: Freebsd compatibility patches

aaron memoryguy at gmail.com
Thu Feb 8 14:17:29 UTC 2007


On 08/02/07, Carl Fongheiser <carlfongheiser at gmail.com> wrote:
> On 2/8/07, Daniel Kristjansson <danielk at cuymedia.net> wrote:
> >
> > I don't need "malloc.h" on my Linux system. Does anyone know
> > what OS "malloc.h" is needed for?
>
> Only something incredibly ancient.  malloc() has been declared in stdlib.h
> for a very long time.
>

I needed it relatively recently so that I didn't lose half the pointer
returned under 64-bit on AIX.... seemed it was assuming a 32-bit
return value until I included the header.

It is possible that the compiler was horrendously out of date, though.
Took me ages to figure out why malloc() was returning a pointer to
kernel space... =)

-- 
aaron

"Oh oh oh. I'm incoherent with excitement. Please tell me what fascinating
bit of badger-spewtumly inconsequential trivia you will assail me with next."
        -- Arthur Dent


More information about the mythtv-dev mailing list