btrfs-progs: bump version to 4.8.3
[buildroot-gz.git] / package / jack2 / 0003-tests-define-__STDC_LIMIT_MACROS.patch
blobe4990b5c34298f57a160df2f0a4c9a0d5e103c16
1 From c971aaab74ca6e7d4ac3a06bd26e7309dfc5da45 Mon Sep 17 00:00:00 2001
2 From: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
3 Date: Mon, 22 Aug 2016 19:04:47 +0530
4 Subject: [PATCH] tests: define __STDC_LIMIT_MACROS
6 With glibc 2.16, we get following build error when building jack2:
8 [193/247] cxx: tests/iodelay.cpp -> build/tests/iodelay.cpp.4.o
9 ../tests/iodelay.cpp:171:43: error: 'UINT32_MAX' was not declared in this scope
10 ../tests/iodelay.cpp:171:55: error: 'UINT32_MAX' was not declared in this scope
11 ../tests/iodelay.cpp:172:44: error: 'UINT32_MAX' was not declared in this scope
12 ../tests/iodelay.cpp:172:56: error: 'UINT32_MAX' was not declared in this scope
14 In glibc 2.17 or older version, Header <stdint.h> defines these macros
15 for C++ only if explicitly requested by defining __STDC_LIMIT_MACROS.
17 We can't use <cstdint> since it requires C++11 standard.
19 This build issue found by Buildroot autobuilder.
20 http://autobuild.buildroot.net/results/369/369ce208ffea43dad75ba0a13469159b341e3bf5/
22 Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
23 ---
24 tests/iodelay.cpp | 1 +
25 1 file changed, 1 insertion(+)
27 diff --git a/tests/iodelay.cpp b/tests/iodelay.cpp
28 index 1ef470f..f5c5836 100644
29 --- a/tests/iodelay.cpp
30 +++ b/tests/iodelay.cpp
31 @@ -20,6 +20,7 @@
33 #include <stdlib.h>
34 #include <stdio.h>
35 +#define __STDC_LIMIT_MACROS
36 #include <stdint.h>
37 #include <math.h>
38 #include <unistd.h>
39 --
40 2.6.2