aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xfsprogs/files/patch-io_fadvise.c
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2013-02-28 10:51:58 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2013-02-28 10:51:58 +0000
commit100d65b37a9bddd5f4aa468bbef3ac27a9d8d5d9 (patch)
treeae18db5e53b8dc7dbd4ce8e2d3f0eec05e53d1f4 /sysutils/xfsprogs/files/patch-io_fadvise.c
parent298de7b9f06266310120b24ed8c489ca75032733 (diff)
downloadports-100d65b37a9bddd5f4aa468bbef3ac27a9d8d5d9.tar.gz
ports-100d65b37a9bddd5f4aa468bbef3ac27a9d8d5d9.zip
Notes
Diffstat (limited to 'sysutils/xfsprogs/files/patch-io_fadvise.c')
-rw-r--r--sysutils/xfsprogs/files/patch-io_fadvise.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/xfsprogs/files/patch-io_fadvise.c b/sysutils/xfsprogs/files/patch-io_fadvise.c
new file mode 100644
index 000000000000..5413e7c81fee
--- /dev/null
+++ b/sysutils/xfsprogs/files/patch-io_fadvise.c
@@ -0,0 +1,11 @@
+--- io/fadvise.c.orig 2013-02-18 10:17:09.000000000 +0100
++++ io/fadvise.c 2013-02-18 10:17:20.000000000 +0100
+@@ -105,7 +105,7 @@
+ 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;
+ }