OSDN Git Service

get rid of QT_LINUXBASE
authorIvailo Monev <xakepa10@gmail.com>
Tue, 24 Nov 2020 16:31:33 +0000 (16:31 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 24 Nov 2020 16:31:33 +0000 (16:31 +0000)
note that arpa/inet.h is included in qnet_unix_p header unconditionally

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/global/qglobal.h
src/gui/painting/qcups.cpp
src/network/kernel/qhostaddress.cpp
src/network/kernel/qnetworkinterface_unix.cpp
src/network/socket/qnativesocketengine_unix.cpp

index f450f5d..90704b9 100644 (file)
@@ -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)
 
index 88bcaf2..5d9e04c 100644 (file)
@@ -35,9 +35,6 @@
 
 #ifndef QT_NO_CUPS
 
-#ifndef QT_LINUXBASE // LSB merges everything into cups.h
-# include <cups/language.h>
-#endif
 #include "qtextcodec.h"
 
 QT_BEGIN_NAMESPACE
index 132b02a..411c592 100644 (file)
 #include "qstringlist.h"
 #include "qendian.h"
 #include "qnativesocketengine_p.h"
+
 #ifndef QT_NO_DATASTREAM
 #include "qdatastream.h"
 #endif
 
-#ifdef QT_LINUXBASE
-#  include <arpa/inet.h>
-#endif
+#include <arpa/inet.h>
 
 QT_BEGIN_NAMESPACE
 
index 9decf1c..7285515 100644 (file)
 #include "qnetworkinterface_p.h"
 #include "qalgorithms.h"
 #include "qnet_unix_p.h"
+#include "qplatformdefs.h"
 
 #ifndef QT_NO_NETWORKINTERFACE
 
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <net/if.h>
+#include <arpa/inet.h>
 
 #ifdef Q_OS_SOLARIS
 # include <sys/sockio.h>
 #endif
-#include <net/if.h>
 
 #ifdef QT_HAVE_GETIFADDRS
 # include <ifaddrs.h>
 #endif
 
-#ifdef QT_LINUXBASE
-#  include <arpa/inet.h>
-#  ifndef SIOCGIFBRDADDR
-#    define SIOCGIFBRDADDR 0x8919
-#  endif
-#endif // QT_LINUXBASE
-
-#include <qplatformdefs.h>
+#ifndef SIOCGIFBRDADDR
+#  define SIOCGIFBRDADDR 0x8919
+#endif
 
 QT_BEGIN_NAMESPACE
 
index 30c2cdd..55640e1 100644 (file)
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <netinet/tcp.h>
+#include <arpa/inet.h>
 
 #ifndef QT_NO_IPV6IFNAME
 #include <net/if.h>
 #endif
 
-#ifdef QT_LINUXBASE
-#include <arpa/inet.h>
-#endif
-
 #ifdef Q_OS_SOLARIS
 #  include <sys/filio.h> // FIONREAD
 #endif