aboutsummaryrefslogtreecommitdiff
path: root/src/common/mac
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/mac')
-rw-r--r--src/common/mac/dump_syms.h3
-rw-r--r--src/common/mac/dump_syms.mm3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/common/mac/dump_syms.h b/src/common/mac/dump_syms.h
index fbf11c78..f197ca28 100644
--- a/src/common/mac/dump_syms.h
+++ b/src/common/mac/dump_syms.h
@@ -40,6 +40,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <ostream>
#include <string>
#include <vector>
@@ -111,7 +112,7 @@ class DumpSymbols {
// Read the selected object file's debugging information, and write it
// out to |stream|. Return true on success; if an error occurs, report it
// and return false.
- bool WriteSymbolFile(FILE *stream);
+ bool WriteSymbolFile(std::ostream &stream);
private:
// Used internally.
diff --git a/src/common/mac/dump_syms.mm b/src/common/mac/dump_syms.mm
index cc2efe17..5fd614f2 100644
--- a/src/common/mac/dump_syms.mm
+++ b/src/common/mac/dump_syms.mm
@@ -40,6 +40,7 @@
#include <mach-o/fat.h>
#include <stdio.h>
+#include <ostream>
#include <string>
#include <vector>
@@ -420,7 +421,7 @@ bool DumpSymbols::LoadCommandDumper::SymtabCommand(const ByteBuffer &entries,
return true;
}
-bool DumpSymbols::WriteSymbolFile(FILE *stream) {
+bool DumpSymbols::WriteSymbolFile(std::ostream &stream) {
// Select an object file, if SetArchitecture hasn't been called to set one
// explicitly.
if (!selected_object_file_) {