[vlc-devel] commit: file: Fix a warning when posix_fadvise() isn't defined. (Pierre d' Herbemont )
git version control
git at videolan.org
Thu Aug 20 11:31:19 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Aug 20 11:03:36 2009 +0200| [94c27c0c19e3ae8101ad471a64ae5e3949103852] | committer: Pierre d'Herbemont
file: Fix a warning when posix_fadvise() isn't defined.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94c27c0c19e3ae8101ad471a64ae5e3949103852
---
modules/access/file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/access/file.c b/modules/access/file.c
index 817f093..4d5c7f6 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -165,7 +165,7 @@ static bool IsRemote (int fd)
}
#ifndef HAVE_POSIX_FADVISE
-# define posix_fadvise(fd, off, len, adv) (0)
+# define posix_fadvise(fd, off, len, adv)
#endif
/*****************************************************************************
More information about the vlc-devel
mailing list