From 1faa0cc88179b0f2a7a67d726664612f30d35bb3 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 24 Nov 2020 16:31:33 +0000 Subject: [PATCH] get rid of QT_LINUXBASE note that arpa/inet.h is included in qnet_unix_p header unconditionally Signed-off-by: Ivailo Monev --- src/core/global/qglobal.h | 7 ------- src/gui/painting/qcups.cpp | 3 --- src/network/kernel/qhostaddress.cpp | 5 ++--- src/network/kernel/qnetworkinterface_unix.cpp | 15 ++++++--------- src/network/socket/qnativesocketengine_unix.cpp | 5 +---- 5 files changed, 9 insertions(+), 26 deletions(-) diff --git a/src/core/global/qglobal.h b/src/core/global/qglobal.h index f450f5d7e..90704b942 100644 --- a/src/core/global/qglobal.h +++ b/src/core/global/qglobal.h @@ -195,13 +195,6 @@ QT_USE_NAMESPACE #define Q_WS_X11 #define Q_OS_UNIX -#if defined(__LSB_VERSION__) -# if __LSB_VERSION__ < 40 -# error "This version of the Linux Standard Base is unsupported" -# endif -# define QT_LINUXBASE -#endif - /* The compiler, must be one of: (Q_CC_x) diff --git a/src/gui/painting/qcups.cpp b/src/gui/painting/qcups.cpp index 88bcaf273..5d9e04cf4 100644 --- a/src/gui/painting/qcups.cpp +++ b/src/gui/painting/qcups.cpp @@ -35,9 +35,6 @@ #ifndef QT_NO_CUPS -#ifndef QT_LINUXBASE // LSB merges everything into cups.h -# include -#endif #include "qtextcodec.h" QT_BEGIN_NAMESPACE diff --git a/src/network/kernel/qhostaddress.cpp b/src/network/kernel/qhostaddress.cpp index 132b02ab0..411c59249 100644 --- a/src/network/kernel/qhostaddress.cpp +++ b/src/network/kernel/qhostaddress.cpp @@ -38,13 +38,12 @@ #include "qstringlist.h" #include "qendian.h" #include "qnativesocketengine_p.h" + #ifndef QT_NO_DATASTREAM #include "qdatastream.h" #endif -#ifdef QT_LINUXBASE -# include -#endif +#include QT_BEGIN_NAMESPACE diff --git a/src/network/kernel/qnetworkinterface_unix.cpp b/src/network/kernel/qnetworkinterface_unix.cpp index 9decf1c53..7285515d5 100644 --- a/src/network/kernel/qnetworkinterface_unix.cpp +++ b/src/network/kernel/qnetworkinterface_unix.cpp @@ -36,29 +36,26 @@ #include "qnetworkinterface_p.h" #include "qalgorithms.h" #include "qnet_unix_p.h" +#include "qplatformdefs.h" #ifndef QT_NO_NETWORKINTERFACE #include #include +#include +#include #ifdef Q_OS_SOLARIS # include #endif -#include #ifdef QT_HAVE_GETIFADDRS # include #endif -#ifdef QT_LINUXBASE -# include -# ifndef SIOCGIFBRDADDR -# define SIOCGIFBRDADDR 0x8919 -# endif -#endif // QT_LINUXBASE - -#include +#ifndef SIOCGIFBRDADDR +# define SIOCGIFBRDADDR 0x8919 +#endif QT_BEGIN_NAMESPACE diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp index 30c2cdd6c..55640e106 100644 --- a/src/network/socket/qnativesocketengine_unix.cpp +++ b/src/network/socket/qnativesocketengine_unix.cpp @@ -45,15 +45,12 @@ #include #include #include +#include #ifndef QT_NO_IPV6IFNAME #include #endif -#ifdef QT_LINUXBASE -#include -#endif - #ifdef Q_OS_SOLARIS # include // FIONREAD #endif -- 2.11.0