Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion toolbelt/sockets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ VirtualAddress VirtualAddress::AnyAddress(uint32_t port) {
return VirtualAddress(VMADDR_CID_ANY, port);
}

#if defined(__linux__)
#if defined(__linux__) && defined(VMADDR_CID_LOCAL)
VirtualAddress VirtualAddress::LocalAddress(uint32_t port) {
return VirtualAddress(VMADDR_CID_LOCAL, port);
}
Expand Down
2 changes: 1 addition & 1 deletion toolbelt/sockets.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class VirtualAddress {
static VirtualAddress HypervisorAddress(uint32_t port);
static VirtualAddress HostAddress(uint32_t port);
static VirtualAddress AnyAddress(uint32_t port);
#if defined(__linux__)
#if defined(__linux__) && defined(VMADDR_CID_LOCAL)
static VirtualAddress LocalAddress(uint32_t port);
#endif

Expand Down