Skip to content

Instantly share code, notes, and snippets.

@niratama
Created April 1, 2015 05:02
Show Gist options
  • Save niratama/1eb631b46a6d6ba1b2d2 to your computer and use it in GitHub Desktop.
Save niratama/1eb631b46a6d6ba1b2d2 to your computer and use it in GitHub Desktop.
ISHマルチボリューム対応版をOS Xでビルドするためのやっつけパッチ
diff --git a/ish.c b/ish.c
index eadfecb..dd7537f 100644
--- a/ish.c
+++ b/ish.c
@@ -52,7 +52,7 @@ char *filename = "file.ish";
int mline = 0;
int lfflag = 0;
-FILE *opath = stdout;
+FILE *opath;
FILE *ipath;
char name[NAMLEN];
@@ -75,6 +75,8 @@ char **argv;
int ac;
char **av;
+ opath = stdout;
+
if (argc < 2)
help();
ac = argc -1;
diff --git a/mvol.c b/mvol.c
index 362058c..9c00b99 100644
--- a/mvol.c
+++ b/mvol.c
@@ -174,6 +174,8 @@ int fd;
return(fd);
}
+void restore_done(char *src, char *dst, long sz);
+
int mvol_ok(fp, n)
int fp;
int n;
@@ -208,6 +210,7 @@ int m,k;
#define COPY_BUF 1024
+void
restore_done(src, dst,sz)
char *src;
char *dst;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment