Skip to content

Commit 49b33ba

Browse files
committed
winfix
1 parent fe728ee commit 49b33ba

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

breakdown/stackwalker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ int ConvertModulesToJSON(const ProcessState& process_state,
638638
if (!modules)
639639
return -1;
640640

641-
u_int64_t main_address = 0;
641+
uint64_t main_address = 0;
642642
const CodeModule *main_module = modules->GetMainModule();
643643
if (main_module) {
644644
main_address = main_module->base_address();

minidump-stackwalk/http_symbol_supplier.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ static bool mkdirs(const string& file) {
7474
dir = new_dir;
7575
}
7676
for (auto d = dirs.rbegin(); d != dirs.rend(); ++d) {
77+
#ifdef _WIN32
78+
if (mkdir(d->c_str()) != 0) {
79+
#else
7780
if (mkdir(d->c_str(), 0755) != 0) {
81+
#endif
7882
BPLOG(ERROR) << "Error creating " << *d << ": " << errno;
7983
return false;
8084
}

minidump-stackwalk/stackwalker.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ int ConvertModulesToJSON(const ProcessState& process_state,
561561
if (!modules)
562562
return -1;
563563

564-
u_int64_t main_address = 0;
564+
uint64_t main_address = 0;
565565
const CodeModule *main_module = modules->GetMainModule();
566566
if (main_module) {
567567
main_address = main_module->base_address();

0 commit comments

Comments
 (0)