From: Brian Brooks <brian.bro...@arm.com>

Use uint64_t instead of int type.

This resolves ipfragreass build breakage with clang on 32-bit systems.

Signed-off-by: Brian Brooks <brian.bro...@arm.com>
Signed-off-by: Maxim Uvarov <maxim.uva...@linaro.org>
---
/** Email created from pull request 77 (muvarov:monarch_lts)
 ** https://github.com/Linaro/odp/pull/77
 ** Patch: https://github.com/Linaro/odp/pull/77.patch
 ** Base sha: 0c15c40db40834f1df217191c4b6a06303ab0872
 ** Merge commit sha: f06a7319a03ad565ced026ddc76a66164aa93782
 **/
 platform/linux-generic/m4/configure.m4 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/platform/linux-generic/m4/configure.m4 
b/platform/linux-generic/m4/configure.m4
index efa29e5e..5d6f4482 100644
--- a/platform/linux-generic/m4/configure.m4
+++ b/platform/linux-generic/m4/configure.m4
@@ -34,10 +34,11 @@ use_libatomic=no
 AC_MSG_CHECKING(whether -latomic is needed for 64-bit atomic built-ins)
 AC_LINK_IFELSE(
   [AC_LANG_SOURCE([[
-    static int loc;
+    #include <stdint.h>
+    static uint64_t loc;
     int main(void)
     {
-        int prev = __atomic_exchange_n(&loc, 7, __ATOMIC_RELAXED);
+        uint64_t prev = __atomic_exchange_n(&loc, 7, __ATOMIC_RELAXED);
         return 0;
     }
     ]])],

Reply via email to