package `qt5quick2-2d-sw-renderer[-GLstubs]`
[feed/video.git] / frameworks / qt5base / patches / 002-musl.patch
1 From 8f09897de948cea8861ca95e182f442cf15a339e Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Mon, 8 Jun 2015 13:59:25 -0700
4 Subject: [PATCH] linux-oe-g++: Invert conditional for defining QT_SOCKLEN_T
5
6 This helps to make sure that QT_SOCKLEN_T is defined to be 'int'
7 only when its glibc < 2 and not also for the libraries which may define
8 it as per standards but are not glibc, e.g. musl
9
10 Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 ---
12 mkspecs/linux-oe-g++/qplatformdefs.h | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15 --- a/mkspecs/linux-g++/qplatformdefs.h
16 +++ b/mkspecs/linux-g++/qplatformdefs.h
17 @@ -78,10 +78,10 @@
18
19 #undef QT_SOCKLEN_T
20
21 -#if defined(__GLIBC__) && (__GLIBC__ >= 2)
22 -#define QT_SOCKLEN_T socklen_t
23 -#else
24 +#if defined(__GLIBC__) && (__GLIBC__ < 2)
25 #define QT_SOCKLEN_T int
26 +#else
27 +#define QT_SOCKLEN_T socklen_t
28 #endif
29
30 #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)