commit | 09164e5a3b3820a9ab7aaf2abc3be2579ae06a1c | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Thu Nov 29 21:27:20 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Nov 29 21:27:20 2012 +0100 |
tree | 6c7c13da68149d20e9b6b85a166eb28e7df1d07a | |
parent | 859088d3939ce6eccfc59a0d5559922e29e58a47 [diff] [blame] |
Wire up _weak posix_fadvise() The commit adding Android support included a botched variant of posix_fadvise(). Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/helpers.c b/helpers.c index 5be45cc..1b4e1d0 100644 --- a/helpers.c +++ b/helpers.c
@@ -50,3 +50,10 @@ return -1; } #endif + +#ifndef FIO_HAVE_FADVISE +int _weak posix_fadvise(int fd, off_t offset, off_t len, int advice) +{ + return 0; +} +#endif