From bdf8472a06f6980a3b2f1cead1f8414e8a8d7bed Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Tue, 4 Sep 2012 10:24:16 -0400 Subject: [PATCH] Bug 749518 - Forward declare dl_iterate_phdr with extern C. r=glandium --- tools/profiler/shared-libraries-linux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/profiler/shared-libraries-linux.cc b/tools/profiler/shared-libraries-linux.cc index 7acde53b39bc..4cce50c79217 100644 --- a/tools/profiler/shared-libraries-linux.cc +++ b/tools/profiler/shared-libraries-linux.cc @@ -42,7 +42,7 @@ static ssize_t getline(char **lineptr, size_t *n, FILE *stream) #include #ifdef ANDROID -__attribute__((weak)) +extern "C" __attribute__((weak)) int dl_iterate_phdr( int (*callback) (struct dl_phdr_info *info, size_t size, void *data),