mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-08 06:36:36 +02:00
Fix Windows compile error
This commit is contained in:
parent
442b154fbf
commit
b0463fdd0c
2 changed files with 2 additions and 2 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -75,7 +75,7 @@ jobs:
|
||||||
mkdir -p build/doxygen
|
mkdir -p build/doxygen
|
||||||
doxygen 2>&1 | tee build/doxygen.log
|
doxygen 2>&1 | tee build/doxygen.log
|
||||||
WARNINGS=$(cat build/doxygen.log | sort | uniq | grep -e ": warning: " | wc -l)
|
WARNINGS=$(cat build/doxygen.log | sort | uniq | grep -e ": warning: " | wc -l)
|
||||||
MAX_ALLOWED=724
|
MAX_ALLOWED=693
|
||||||
echo "Doxygen finished with $WARNINGS warnings, max allowed: $MAX_ALLOWED"
|
echo "Doxygen finished with $WARNINGS warnings, max allowed: $MAX_ALLOWED"
|
||||||
if [ "$WARNINGS" -gt "$MAX_ALLOWED" ]; then exit $WARNINGS; else exit 0; fi;
|
if [ "$WARNINGS" -gt "$MAX_ALLOWED" ]; then exit $WARNINGS; else exit 0; fi;
|
||||||
|
|
||||||
|
|
|
@ -529,7 +529,7 @@ std::string ClientConnectionWss::getMacAddress()
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
::getMacAddress(ssl_ws_.next_layer().lowest_layer().native_handle());
|
::getMacAddress(ssl_ws_.next_layer().lowest_layer().native_handle());
|
||||||
#else
|
#else
|
||||||
::getMacAddress(tcp_ws_.next_layer().lowest_layer().local_endpoint().address().to_string());
|
::getMacAddress(ssl_ws_.next_layer().lowest_layer().local_endpoint().address().to_string());
|
||||||
#endif
|
#endif
|
||||||
if (mac.empty())
|
if (mac.empty())
|
||||||
mac = "00:00:00:00:00:00";
|
mac = "00:00:00:00:00:00";
|
||||||
|
|
Loading…
Add table
Reference in a new issue