OSDN Git Service

libktorrent: do not rely on Q_OS_BSD4 definition
authorIvailo Monev <xakepa10@gmail.com>
Sun, 25 Oct 2020 19:51:17 +0000 (21:51 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 25 Oct 2020 19:51:17 +0000 (21:51 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
libktorrent/src/net/socket.cpp

index e51c645..8b7a0a1 100644 (file)
@@ -335,7 +335,7 @@ namespace net
 
                if (m_ip_version == 4)
                {
-#if defined(Q_OS_MACX) || defined(Q_OS_DARWIN) || defined(Q_OS_NETBSD) || defined(Q_OS_BSD4)
+#if defined(Q_OS_MACX) || defined(Q_OS_DARWIN) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD) || defined(Q_OS_NETBSD)
                        unsigned int c = type_of_service;
 #else
                        unsigned char c = type_of_service;