aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Que <sque@chromium.org>2016-01-29 18:17:16 -0800
committerSimon Que <sque@chromium.org>2016-01-29 18:17:16 -0800
commit17182e1d3c324e8fe9cc02ce2822caa746d7d17a (patch)
tree334e040e66a6bc673d7de48055138b989b0fa1d8
parentc69721b2b2ceae426c36de191dd0a6fa443c5c7a (diff)
downloadgperftools-17182e1d3c324e8fe9cc02ce2822caa746d7d17a.tar.gz
Fix include of malloc_hook_c.h in malloc_hook.h
malloc_hook.h includes malloc_hook_c.h as <gperftools/malloc_hook_c.h>. This requires the compiler to have designated src/gperftools as a standard include directory (-I), which may not always be the case. Instead, include it as "malloc_hook_c.h", which will search in the same directory first. This will always work, regardless of whether it was designated a standard include directory.
-rw-r--r--src/gperftools/malloc_hook.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gperftools/malloc_hook.h b/src/gperftools/malloc_hook.h
index 9d56fb1..b76411f 100644
--- a/src/gperftools/malloc_hook.h
+++ b/src/gperftools/malloc_hook.h
@@ -70,7 +70,7 @@
#include <stddef.h>
#include <sys/types.h>
extern "C" {
-#include <gperftools/malloc_hook_c.h> // a C version of the malloc_hook interface
+#include "malloc_hook_c.h" // a C version of the malloc_hook interface
}
// Annoying stuff for windows -- makes sure clients can import these functions