diff -ruN hoard-3.6.1.orig/src/heaplayers/wrapper.cpp hoard-3.6.1/src/heaplayers/wrapper.cpp --- hoard-3.6.1.orig/src/heaplayers/wrapper.cpp 2007-05-21 18:47:06.000000000 -0700 +++ hoard-3.6.1/src/heaplayers/wrapper.cpp 2007-05-25 16:03:55.000000000 -0700 @@ -31,7 +31,12 @@ */ #include // for memcpy + +#if defined(_WIN32) || defined(linux) #include // for memalign +#elif defined(__APPLE__) +#include +#endif #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN diff -ruN hoard-3.6.1.orig/src/hoarddetours.cpp hoard-3.6.1/src/hoarddetours.cpp --- hoard-3.6.1.orig/src/hoarddetours.cpp 2007-05-21 18:47:06.000000000 -0700 +++ hoard-3.6.1/src/hoarddetours.cpp 2007-05-25 16:04:13.000000000 -0700 @@ -29,7 +29,11 @@ #include #include +#if defined(_WIN32) || defined(linux) #include +#elif defined(__APPLE__) +#include +#endif #include "detours.h" #if defined(_WIN32)