Commit 464c9c73 authored by Dominik Charousset's avatar Dominik Charousset

Fix build on Linux

parent 35fedb87
...@@ -129,7 +129,7 @@ std::vector<iface_info> get_mac_addresses() { ...@@ -129,7 +129,7 @@ std::vector<iface_info> get_mac_addresses() {
return {}; return {};
} }
std::ostringstream oss; std::ostringstream oss;
oss << hex; oss << std::hex;
oss.width(2); oss.width(2);
oss << ctoi(item->ifr_hwaddr.sa_data[0]); oss << ctoi(item->ifr_hwaddr.sa_data[0]);
for (size_t j = 1; j < 6; ++j) { for (size_t j = 1; j < 6; ++j) {
...@@ -217,7 +217,7 @@ std::vector<iface_info> get_mac_addresses() { ...@@ -217,7 +217,7 @@ std::vector<iface_info> get_mac_addresses() {
for (auto addr = addresses.get(); addr != nullptr; addr = addr->Next) { for (auto addr = addresses.get(); addr != nullptr; addr = addr->Next) {
if (addr->PhysicalAddressLength > 0) { if (addr->PhysicalAddressLength > 0) {
std::ostringstream oss; std::ostringstream oss;
oss << hex; oss << std::hex;
oss.width(2); oss.width(2);
oss << static_cast<int>(addr->PhysicalAddress[0]); oss << static_cast<int>(addr->PhysicalAddress[0]);
for (DWORD i = 1; i < addr->PhysicalAddressLength; ++i) { for (DWORD i = 1; i < addr->PhysicalAddressLength; ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment