aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase/0015-corelib-Include-sys-types.h-for-uint32_t.patch
blob: 2906e763509479d3d7386abc8e10d6e821f165d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From a1508aff41a526b900f958831a1196f2655c57e9 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 6 Dec 2018 11:47:52 -0800
Subject: [PATCH] corelib: Include sys/types.h for uint32_t

This has been includes indirectly on glibc/linux systems
via inttypes.h -> stdint.h -> sys/types.h but it breaks on
musl where this indirect include chain does not exist.

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/corelib/global/qnumeric_p.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/corelib/global/qnumeric_p.h b/src/corelib/global/qnumeric_p.h
index 86e7997680..73bcd370c2 100644
--- a/src/corelib/global/qnumeric_p.h
+++ b/src/corelib/global/qnumeric_p.h
@@ -55,6 +55,7 @@
 #include "QtCore/private/qglobal_p.h"
 #include <cmath>
 #include <limits>
+#include <sys/types.h>
 
 #if defined(Q_CC_MSVC)
 #  include <intrin.h>