summaryrefslogtreecommitdiffstats
path: root/package/jack2/0004-tests-define-__STDC_LIMIT_MACROS.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-02 18:53:25 +0200
committerPeter Korsgaard <peter@korsgaard.com>2017-07-03 00:05:18 +0200
commitd8e0a2d4ae30e19b80d71777e2e844e966c337e6 (patch)
treeeb14f08c08c493cb0dcc61edb622d2326e881ad9 /package/jack2/0004-tests-define-__STDC_LIMIT_MACROS.patch
parent57180155ca8c1381946508130fe2292325e3dffe (diff)
downloadbuildroot-d8e0a2d4ae30e19b80d71777e2e844e966c337e6.tar.gz
buildroot-d8e0a2d4ae30e19b80d71777e2e844e966c337e6.zip
jack2: don't download patch from Github
Patches downloaded from Github are not stable, so bring them in the tree. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/jack2/0004-tests-define-__STDC_LIMIT_MACROS.patch')
-rw-r--r--package/jack2/0004-tests-define-__STDC_LIMIT_MACROS.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/package/jack2/0004-tests-define-__STDC_LIMIT_MACROS.patch b/package/jack2/0004-tests-define-__STDC_LIMIT_MACROS.patch
new file mode 100644
index 0000000000..e4990b5c34
--- /dev/null
+++ b/package/jack2/0004-tests-define-__STDC_LIMIT_MACROS.patch
@@ -0,0 +1,41 @@
+From c971aaab74ca6e7d4ac3a06bd26e7309dfc5da45 Mon Sep 17 00:00:00 2001
+From: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
+Date: Mon, 22 Aug 2016 19:04:47 +0530
+Subject: [PATCH] tests: define __STDC_LIMIT_MACROS
+
+With glibc 2.16, we get following build error when building jack2:
+
+ [193/247] cxx: tests/iodelay.cpp -> build/tests/iodelay.cpp.4.o
+ ../tests/iodelay.cpp:171:43: error: 'UINT32_MAX' was not declared in this scope
+ ../tests/iodelay.cpp:171:55: error: 'UINT32_MAX' was not declared in this scope
+ ../tests/iodelay.cpp:172:44: error: 'UINT32_MAX' was not declared in this scope
+ ../tests/iodelay.cpp:172:56: error: 'UINT32_MAX' was not declared in this scope
+
+In glibc 2.17 or older version, Header <stdint.h> defines these macros
+for C++ only if explicitly requested by defining __STDC_LIMIT_MACROS.
+
+We can't use <cstdint> since it requires C++11 standard.
+
+This build issue found by Buildroot autobuilder.
+http://autobuild.buildroot.net/results/369/369ce208ffea43dad75ba0a13469159b341e3bf5/
+
+Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
+---
+ tests/iodelay.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/iodelay.cpp b/tests/iodelay.cpp
+index 1ef470f..f5c5836 100644
+--- a/tests/iodelay.cpp
++++ b/tests/iodelay.cpp
+@@ -20,6 +20,7 @@
+
+ #include <stdlib.h>
+ #include <stdio.h>
++#define __STDC_LIMIT_MACROS
+ #include <stdint.h>
+ #include <math.h>
+ #include <unistd.h>
+--
+2.6.2
+
OpenPOWER on IntegriCloud