title: Should Mac OSX have a "malloc.h" file?
body: <p>A customer's code is expecting to find an include file <code>malloc.h</code> in one of the "usual suspect" locations.  On my Mac, AFAICT, there is no <code>malloc.h</code>, at least not in any place you would expect to find it, such as <code>/usr/include</code>, <code>/usr/local/include</code>, or <code>/opt/local/include</code>.  Since the <code>malloc()</code> is usually defined in <code>stdlib.h</code>, and since the code includes stdlib.h anyway, I was able to get the code to build by just commenting out the few includes of <code>malloc.h</code>.  I am building with <code>gcc</code>.</p>
  
  <p>But two questions:  Is my gcc messed up somehow?  Should that file be there?  Also, the code bombs almost immediately with a seg fault that I haven't been able to track down yet.  Could this be the consequence of using the wrong <code>malloc()</code>?</p>