Skip to content

Instantly share code, notes, and snippets.

@tpaviot
Created February 28, 2012 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpaviot/1933848 to your computer and use it in GitHub Desktop.
Save tpaviot/1933848 to your computer and use it in GitHub Desktop.
scl memmgr OSX fix
diff --git a/src/base/scl_memmgr.cc b/src/base/scl_memmgr.cc
index 304814b..b1a9ae7 100644
--- a/src/base/scl_memmgr.cc
+++ b/src/base/scl_memmgr.cc
@@ -1,7 +1,11 @@
#define SCL_MEMMGR_CC
#include "scl_memmgr.h"
+#if __APPLE__
+#include <malloc/malloc.h>
+#else
#include <malloc.h>
+#endif
#include <stdio.h>
#include <string>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment