1 Patch for recent versions of glibc which always assume int64_t support.
3 Fixes compilation error with aarch64 target:
5 ./boost/atomic/atomic.hpp: At global scope:
6 ./boost/atomic/atomic.hpp:202:16: error: 'uintptr_t' was not declared in this scope
7 typedef atomic<uintptr_t> atomic_uintptr_t;
9 ./boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
10 typedef atomic<uintptr_t> atomic_uintptr_t;
12 ./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration before ';' token
13 typedef atomic<uintptr_t> atomic_uintptr_t;
16 Reported here: https://svn.boost.org/trac/boost/ticket/8973
17 Fix reported here: https://svn.boost.org/trac/boost/ticket/8731
19 Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
20 Backported-from: https://svn.boost.org/trac/boost/changeset/84950
22 --- a/boost/cstdint.hpp (revision 84805)
23 +++ b/boost/cstdint.hpp (revision 84950)
25 // See https://svn.boost.org/trac/boost/ticket/3548 and http://sources.redhat.com/bugzilla/show_bug.cgi?id=10990
27 -#if defined(BOOST_HAS_STDINT_H) && (!defined(__GLIBC__) || defined(__GLIBC_HAVE_LONG_LONG))
28 +#if defined(BOOST_HAS_STDINT_H) \
29 + && (!defined(__GLIBC__) \
30 + || defined(__GLIBC_HAVE_LONG_LONG) \
31 + || (defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 17)))))
33 // The following #include is an implementation artifact; not part of interface.