projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e760cf
)
configure: make __sync_fetch_and_add() test use 64-bit types
author
Jens Axboe
<axboe@fb.com>
Mon, 27 Jul 2015 18:22:14 +0000
(12:22 -0600)
committer
Jens Axboe
<axboe@fb.com>
Mon, 27 Jul 2015 18:22:14 +0000
(12:22 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
configure
patch
|
blob
|
blame
|
history
diff --git
a/configure
b/configure
index 6807679e1f0d89c21d811eec2443b6d5527fe58b..1cc54da2376617344b12c03d99b3c7e38bd4fb91 100755
(executable)
--- 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 <inttypes.h>
+static int sfaa(uint64_t *ptr)
{
return __sync_fetch_and_add(ptr, 0);
}
int main(int argc, char **argv)
{
-
in
t val = 42;
+
uint64_
t val = 42;
sfaa(&val);
return val;
}