summaryrefslogtreecommitdiffstats
path: root/system/partimage/compilefix.diff
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2016-10-24 19:35:30 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-24 19:35:30 +0700
commitea2a3496ed40c78680f4a13dad282c6f32a4f102 (patch)
tree0c0ad03dbdabb7320f987a7f6bef1923061a2c8a /system/partimage/compilefix.diff
parent8297f5ec589a4bcee2837854271a7fe627346647 (diff)
downloadslackbuilds-ea2a3496ed40c78680f4a13dad282c6f32a4f102.tar.gz
slackbuilds-ea2a3496ed40c78680f4a13dad282c6f32a4f102.tar.xz
system/partimage: Added (backup system).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/partimage/compilefix.diff')
-rw-r--r--system/partimage/compilefix.diff45
1 files changed, 45 insertions, 0 deletions
diff --git a/system/partimage/compilefix.diff b/system/partimage/compilefix.diff
new file mode 100644
index 0000000000..4c84442046
--- /dev/null
+++ b/system/partimage/compilefix.diff
@@ -0,0 +1,45 @@
+diff -Naur partimage-0.6.9/src/client/imagefile.cpp partimage-0.6.9.patched/src/client/imagefile.cpp
+--- partimage-0.6.9/src/client/imagefile.cpp 2010-07-25 11:30:31.000000000 -0400
++++ partimage-0.6.9.patched/src/client/imagefile.cpp 2016-10-21 13:28:03.035049317 -0400
+@@ -783,7 +783,7 @@
+ else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
+ {
+ showDebug(1, "open gzip\n");
+- m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "wb"); //"wb1h");
++ m_gzImageFile = gzdopen(m_nFdImage, "wb"); //"wb1h");
+ if (m_gzImageFile == NULL)
+ {
+ showDebug(1, "error:%d %s\n", errno, strerror(errno));
+@@ -1098,7 +1098,7 @@
+ }
+ else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
+ {
+- m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "rb");
++ m_gzImageFile = gzdopen(m_nFdImage, "rb");
+ if (m_gzImageFile == NULL)
+ THROW(ERR_ERRNO, errno);
+ else
+diff -Naur partimage-0.6.9/src/client/imagefile.h partimage-0.6.9.patched/src/client/imagefile.h
+--- partimage-0.6.9/src/client/imagefile.h 2010-07-25 11:30:31.000000000 -0400
++++ partimage-0.6.9.patched/src/client/imagefile.h 2016-10-21 13:28:03.036049317 -0400
+@@ -41,7 +41,7 @@
+ COptions m_options;
+
+ FILE *m_fImageFile;
+- gzFile *m_gzImageFile;
++ gzFile m_gzImageFile;
+ BZFILE *m_bzImageFile;
+
+ int m_nFdImage;
+diff -Naur partimage-0.6.9/src/client/misc.h partimage-0.6.9.patched/src/client/misc.h
+--- partimage-0.6.9/src/client/misc.h 2010-07-25 11:30:31.000000000 -0400
++++ partimage-0.6.9.patched/src/client/misc.h 2016-10-21 13:28:09.708049742 -0400
+@@ -36,7 +36,7 @@
+ #endif
+
+ #ifndef makedev
+- #define makedev(maj,min) (((maj) << 8) | min))
++ #define makedev(maj,min) (((maj) << 8) | (min))
+ #endif
+
+ // =======================================================