Skip to content

Commit

Permalink
fix: win build
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-olivier committed Jul 26, 2024
1 parent 90a6911 commit b7295d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/symbols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>

std::string get_demangled_name(const char *symbol);
Expand Down Expand Up @@ -81,6 +79,8 @@ std::vector<std::string> get_symbols(HMODULE hModule, bool demangle) {
#include <mach-o/loader.h>
#include <mach-o/nlist.h>
#include <mach-o/fat.h>
#include <fcntl.h>
#include <unistd.h>

std::vector<std::string> get_symbols_at_off(int fd, bool demangle, off_t offset, bool is_64_bit) {
std::vector<std::string> result;
Expand Down Expand Up @@ -218,6 +218,8 @@ std::vector<std::string> get_symbols(int fd, bool demangle) {

#include <libelf.h>
#include <gelf.h>
#include <fcntl.h>
#include <unistd.h>

std::vector<std::string> get_symbols(int fd, bool demangle) {
std::vector<std::string> result;
Expand Down

0 comments on commit b7295d5

Please sign in to comment.