configure: fixup __sync_fetch_and_add()
authorJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2013 21:13:29 +0000 (22:13 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2013 21:13:29 +0000 (22:13 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure

index 1a75fa4830555f871f266b9c03e24e0d10595948..d1f277d057ea1e0ed8226f80d63bfb18ee5097cd 100755 (executable)
--- a/configure
+++ b/configure
@@ -446,7 +446,7 @@ sfaa="no"
 cat > $TMPC << EOF
 static int sfaa(int *ptr)
 {
-  return __sync_fetch_and_and(ptr, 0);
+  return __sync_fetch_and_add(ptr, 0);
 }
 
 int main(int argc, char **argv)
@@ -459,7 +459,7 @@ EOF
 if compile_prog "" "" "__sync_fetch_and_add()" ; then
     sfaa="yes"
 fi
-echo "__sync_fetch_and add          $sfaa"
+echo "__sync_fetch_and_add          $sfaa"
 
 ##########################################
 # libverbs probe