summaryrefslogtreecommitdiff
path: root/sysutils/dd_rescue/files/patch-dd_rescue.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/dd_rescue/files/patch-dd_rescue.c')
-rw-r--r--sysutils/dd_rescue/files/patch-dd_rescue.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sysutils/dd_rescue/files/patch-dd_rescue.c b/sysutils/dd_rescue/files/patch-dd_rescue.c
index 1f8493fa4232..3d619647b7a4 100644
--- a/sysutils/dd_rescue/files/patch-dd_rescue.c
+++ b/sysutils/dd_rescue/files/patch-dd_rescue.c
@@ -1,12 +1,16 @@
---- dd_rescue.c.orig Sun Mar 18 07:29:10 2007
-+++ dd_rescue.c
-@@ -742,7 +742,8 @@
+--- dd_rescue.c.orig 2012-05-20 05:46:14.000000000 +0900
++++ dd_rescue.c 2012-06-02 22:24:44.000000000 +0900
+@@ -1194,11 +1194,11 @@
ipos = 0;
#ifdef O_DIRECT
-- if (posix_memalign(mp, sysconf(_SC_PAGESIZE), softbs)) {
+- if (posix_memalign(&mp, pagesize, softbs)) {
+ buf = malloc(softbs);
+ if (!buf) {
fplog(stderr, "dd_rescue: (fatal): allocation of aligned buffer failed!\n");
cleanup(); exit(18);
}
+- buf = mp;
+ #else
+ buf = malloc(softbs);
+ if (!buf) {