aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2007-02-12 02:06:58 +0800
committernobutaka <nobutaka@FreeBSD.org>2007-02-12 02:06:58 +0800
commit4ec585992d4fe1f674adad893e8374948bf9d914 (patch)
treec09a1ad1d796895d8834930a7239becc074a305e /sysutils
parent8041ca2af803beb1d0d51e3795a2383b444022b2 (diff)
downloadfreebsd-ports-graphics-4ec585992d4fe1f674adad893e8374948bf9d914.tar.gz
freebsd-ports-graphics-4ec585992d4fe1f674adad893e8374948bf9d914.tar.zst
freebsd-ports-graphics-4ec585992d4fe1f674adad893e8374948bf9d914.zip
Fix build error on 4-stable.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/dd_rescue/files/patch-dd_rescue.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/sysutils/dd_rescue/files/patch-dd_rescue.c b/sysutils/dd_rescue/files/patch-dd_rescue.c
index 99594b66653..72a1a20724c 100644
--- a/sysutils/dd_rescue/files/patch-dd_rescue.c
+++ b/sysutils/dd_rescue/files/patch-dd_rescue.c
@@ -1,6 +1,21 @@
---- dd_rescue.c.orig Mon Feb 14 09:47:10 2005
-+++ dd_rescue.c Tue Mar 15 00:59:42 2005
-@@ -717,7 +717,8 @@
+--- dd_rescue.c.orig Sun Jul 23 20:47:50 2006
++++ dd_rescue.c Mon Feb 12 02:53:35 2007
+@@ -213,11 +213,13 @@
+
+ void savebb( int block )
+ {
++ FILE *bbfile;
++
+ fplog(stderr, "Bad block: %d\n", block);
+
+ if( bbname == NULL )
+ return;
+- FILE *bbfile = fopen(bbname,"a");
++ bbfile = fopen(bbname,"a");
+ fprintf(bbfile,"%d\n",block);
+ fclose(bbfile);
+ }
+@@ -742,7 +744,8 @@
ipos = 0;
#ifdef O_DIRECT