summaryrefslogtreecommitdiffstats
path: root/mkspecs/linux-g++/qplatformdefs.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-04-20 07:53:54 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-04-23 06:41:32 +0200
commit1c7950081f926475bbdaa18379c2f51f99fcb3bb (patch)
tree5b335820a35ad9fd3b33be9d6e6cb98900f47efb /mkspecs/linux-g++/qplatformdefs.h
parent8058e11012848eedbf31458782146f82e9debfe8 (diff)
Remove checks for glibc < 2 from qplatformdefs.h files
The last release of glibc 1 was 1995 and can be considered outdated. Also, the current check prevented building with e.g. musl libc. Every file that includes common/posix/qplatformdefs.h already has QT_SOCKLEN_T defined to socklen_t, so remove the definition from those completely. This is a continuation of 813f468a and a421e409. Change-Id: Icf2692a8e814286487662e290a8f844872eefe53 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'mkspecs/linux-g++/qplatformdefs.h')
-rw-r--r--mkspecs/linux-g++/qplatformdefs.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/mkspecs/linux-g++/qplatformdefs.h b/mkspecs/linux-g++/qplatformdefs.h
index 13523f0702..4d2750d9ec 100644
--- a/mkspecs/linux-g++/qplatformdefs.h
+++ b/mkspecs/linux-g++/qplatformdefs.h
@@ -79,14 +79,6 @@
#define QT_USE_XOPEN_LFS_EXTENSIONS
#include "../common/posix/qplatformdefs.h"
-#undef QT_SOCKLEN_T
-
-#if defined(__GLIBC__) && (__GLIBC__ < 2)
-#define QT_SOCKLEN_T int
-#else
-#define QT_SOCKLEN_T socklen_t
-#endif
-
#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
#define QT_SNPRINTF ::snprintf
#define QT_VSNPRINTF ::vsnprintf