From 958886d8d45e433a2f830d2bcfc2df54fb986e50 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 27 Jul 2015 12:22:14 -0600 Subject: [PATCH] configure: make __sync_fetch_and_add() test use 64-bit types Signed-off-by: Jens Axboe --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 6807679e..1cc54da2 100755 --- a/configure +++ b/configure @@ -550,14 +550,15 @@ echo "Solaris AIO support $solaris_aio" # __sync_fetch_and_add test sfaa="no" cat > $TMPC << EOF -static int sfaa(int *ptr) +#include +static int sfaa(uint64_t *ptr) { return __sync_fetch_and_add(ptr, 0); } int main(int argc, char **argv) { - int val = 42; + uint64_t val = 42; sfaa(&val); return val; } -- 2.25.1