From 56f45dce39476676df84d97586b67702988f69f1 Mon Sep 17 00:00:00 2001 From: Dave Flogeras Date: Tue, 29 Sep 2015 08:52:31 -0300 Subject: [PATCH] Fix for platform socklen_t on other C libraries than glibc. Rather than treating >=glibc-2 specially, we treat Reviewed-by: Thiago Macieira --- mkspecs/linux-g++/qplatformdefs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mkspecs/linux-g++/qplatformdefs.h b/mkspecs/linux-g++/qplatformdefs.h index 5c18632e5d1..95a57585d9d 100644 --- a/mkspecs/linux-g++/qplatformdefs.h +++ b/mkspecs/linux-g++/qplatformdefs.h @@ -78,10 +78,10 @@ #undef QT_SOCKLEN_T -#if defined(__GLIBC__) && (__GLIBC__ >= 2) -#define QT_SOCKLEN_T socklen_t -#else +#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)