]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
jack2: fix build issue with glibc
authorRahul Bedarkar <rahul.bedarkar@imgtec.com>
Mon, 22 Aug 2016 17:31:57 +0000 (23:01 +0530)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 27 Aug 2016 13:45:43 +0000 (15:45 +0200)
commit06ae84405d8c0e7308b780aab532a8be64a08457
tree3c10bfb10e81c84353d658173623a4ff551dc2c6
parent37ad91db540bcd15281b8c38a83fc208c720f1e3
jack2: fix build issue with glibc

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.

Fixes:

  http://autobuild.buildroot.net/results/369ce208ffea43dad75ba0a13469159b341e3bf5/

Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/jack2/0003-tests-define-__STDC_LIMIT_MACROS.patch [new file with mode: 0644]