hrydgard/native — pull request #8 by Kovensky (2012-11-19 00:48:46+00:00)
Title: Fix FreeBSD compatibility and get rid of malloc.h

backtrace.cpp assumes that !_WIN32 == __linux__. Change the check to #if __linux__.

malloc.h is ancient pre-ISO-standard history, get rid of it. malloc is defined by stdlib.h.

Elsewhere, fix includes to work with freebsd, which mostly involves getting rid of linuxisms. Yes, stat64 is a linuxism.