forked from Lainports/freebsd-ports
17 lines
547 B
C++
17 lines
547 B
C++
--- src/UdpDataProtocol.cpp.orig 2025-01-21 17:04:33 UTC
|
|
+++ src/UdpDataProtocol.cpp
|
|
@@ -388,12 +388,14 @@ bool UdpDataProtocol::setSocketQos(socket_type& sock_f
|
|
}
|
|
|
|
// Set 802.1q QoS priority
|
|
+# if !defined(__FreeBSD__) // is there a FreeBSD replacement?
|
|
int priority = 6;
|
|
result = ::setsockopt(sock_fd, SOL_SOCKET, SO_PRIORITY, &priority, sizeof(priority));
|
|
if (result != 0) {
|
|
std::cerr << "setsockopt failed. Error: " << errno << std::endl;
|
|
return false;
|
|
}
|
|
+# endif
|
|
#endif
|
|
|
|
return true;
|