From: Jens Axboe Date: Mon, 27 Jul 2015 18:22:14 +0000 (-0600) Subject: configure: make __sync_fetch_and_add() test use 64-bit types X-Git-Tag: fio-2.2.10~33 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=958886d8d45e433a2f830d2bcfc2df54fb986e50 configure: make __sync_fetch_and_add() test use 64-bit types Signed-off-by: Jens Axboe --- 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; }