git » libjio » commit 1478b52

libjio: Define a dummy POSIX_FADV_WILLNEED when it's not available

author Alberto Bertogli
2009-08-02 07:55:34 UTC
committer Alberto Bertogli
2009-08-02 08:00:19 UTC
parent e9d363c27b8c013ad25891d28909b39b0ea1cff3

libjio: Define a dummy POSIX_FADV_WILLNEED when it's not available

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

libjio/compat.h +1 -0

diff --git a/libjio/compat.h b/libjio/compat.h
index 427aa4d..c33baee 100644
--- a/libjio/compat.h
+++ b/libjio/compat.h
@@ -40,6 +40,7 @@ int sync_range_wait(int fd, off_t offset, size_t nbytes);
 #include <fcntl.h>
 #ifndef POSIX_FADV_WILLNEED
 #define LACK_POSIX_FADVISE 1
+#define POSIX_FADV_WILLNEED 0
 #define posix_fadvise(fd, offset, len, advise)
 #endif