aboutsummaryrefslogtreecommitdiff
path: root/graphics/xv/files
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-11-18 00:30:33 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-11-18 00:30:33 +0000
commit65ddad34ca898318606aeef56b93667fc745cd04 (patch)
tree9d28ef3eb41647f9477a6e2e7e871dbc91fca68f /graphics/xv/files
parent772fb7e370bf0253ee6942e5872bfce896443df7 (diff)
downloadports-65ddad34ca898318606aeef56b93667fc745cd04.tar.gz
ports-65ddad34ca898318606aeef56b93667fc745cd04.zip
Notes
Diffstat (limited to 'graphics/xv/files')
-rw-r--r--graphics/xv/files/patch-ab79
-rw-r--r--graphics/xv/files/patch-ad12
2 files changed, 79 insertions, 12 deletions
diff --git a/graphics/xv/files/patch-ab b/graphics/xv/files/patch-ab
new file mode 100644
index 000000000000..f3b6231fc185
--- /dev/null
+++ b/graphics/xv/files/patch-ab
@@ -0,0 +1,79 @@
+*** vdcomp.c.orig Fri Dec 23 01:34:47 1994
+--- vdcomp.c Mon Nov 18 02:52:59 1996
+***************
+*** 108,114 ****
+ !defined(bsd43) && \
+ !defined(aux) && \
+ !defined(__bsdi__) && \
+! !defined(sequent)
+
+ # if defined(hp300) || defined(hp800) || defined(NeXT)
+ # include <sys/malloc.h> /* it's in 'sys' on HPs and NeXT */
+--- 108,115 ----
+ !defined(bsd43) && \
+ !defined(aux) && \
+ !defined(__bsdi__) && \
+! !defined(sequent) && \
+! !defined(__FreeBSD__)
+
+ # if defined(hp300) || defined(hp800) || defined(NeXT)
+ # include <sys/malloc.h> /* it's in 'sys' on HPs and NeXT */
+***************
+*** 429,438 ****
+ {
+ short shortint;
+ typedef long off_t;
+
+ if (inname[0] == ' ') {
+ printf("\nEnter name of file to be decompressed: ");
+! gets (inname);
+ }
+
+ if (host == 1 | host == 2) {
+--- 430,442 ----
+ {
+ short shortint;
+ typedef long off_t;
++ char *s;
+
+ if (inname[0] == ' ') {
+ printf("\nEnter name of file to be decompressed: ");
+! fgets (inname, sizeof(inname), stdin);
+! if ((s = strchr(inname, '\n')) != NULL)
+! *s = '\0';
+ }
+
+ if (host == 1 | host == 2) {
+***************
+*** 474,486 ****
+ printf("\n 3. VICAR format.");
+ printf("\n 4. Unlabelled binary array.\n");
+ printf("\n Enter format number:");
+! gets(inname);
+ output_format = atoi(inname);
+ } while (output_format < 1 || output_format > 4);
+
+ if (outname[0] == ' ') {
+ printf("\nEnter name of uncompressed output file: ");
+! gets (outname);
+ }
+
+ return(host);
+--- 478,494 ----
+ printf("\n 3. VICAR format.");
+ printf("\n 4. Unlabelled binary array.\n");
+ printf("\n Enter format number:");
+! fgets (inname, sizeof(inname), stdin);
+! if ((s = strchr(inname, '\n')) != NULL)
+! *s = '\0';
+ output_format = atoi(inname);
+ } while (output_format < 1 || output_format > 4);
+
+ if (outname[0] == ' ') {
+ printf("\nEnter name of uncompressed output file: ");
+! fgets (outname, sizeof(outname), stdin);
+! if ((s = strchr(outname, '\n')) != NULL)
+! *s = '\0';
+ }
+
+ return(host);
diff --git a/graphics/xv/files/patch-ad b/graphics/xv/files/patch-ad
index 07030201c063..bdfa852aad21 100644
--- a/graphics/xv/files/patch-ad
+++ b/graphics/xv/files/patch-ad
@@ -60,15 +60,3 @@
DEFINES= $(SCO) $(UNIX) $(NODIRENT) $(VPRINTF) $(TIMERS) \
$(HPUX7) $(JPEG) $(TIFF) $(PDS) $(DXWM) $(RAND) \
---- ./vdcomp.c.org Thu Dec 22 14:34:47 1994
-+++ ./vdcomp.c Wed Jul 5 03:39:26 1995
-@@ -108,7 +108,8 @@
- !defined(bsd43) && \
- !defined(aux) && \
- !defined(__bsdi__) && \
-- !defined(sequent)
-+ !defined(sequent) && \
-+ !defined(__FreeBSD__)
-
- # if defined(hp300) || defined(hp800) || defined(NeXT)
- # include <sys/malloc.h> /* it's in 'sys' on HPs and NeXT */