diff mbox

[xfsprogs] fadvise.c: replace posix_fadvise64 by equivalent posix_fadvise

Message ID 20160809180605.GA7664@nyan (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Felix Janda Aug. 9, 2016, 6:06 p.m. UTC
also fixes a compile failure on FreeBSD

Signed-off-by: Felix Janda <felix.janda@posteo.de>
---
overlooked this one...
---
 io/fadvise.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/io/fadvise.c b/io/fadvise.c
index d59d1ff..46174f3 100644
--- a/io/fadvise.c
+++ b/io/fadvise.c
@@ -103,7 +103,7 @@  fadvise_f(
 		return command_usage(&fadvise_cmd);
 	}
 
-	if (posix_fadvise64(file->fd, offset, length, advise) < 0) {
+	if (posix_fadvise(file->fd, offset, length, advise) < 0) {
 		perror("fadvise");
 		return 0;
 	}