summaryrefslogtreecommitdiff
path: root/archivers/bzip/patches/patch-ac
blob: ca210ce4094fa1c4cb08007a68d3d9042e526361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- bzip.c.orig	Sat Sep 28 03:32:05 1996
+++ bzip.c	Sat Sep 28 03:37:53 1996
@@ -114,6 +114,7 @@
 --*/
 
 #if BZ_UNIX_32
+   #include <sys/types.h>
    #include <utime.h>
    #include <unistd.h>
 #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)	/* stdlib already included above */
@@ -3132,11 +3133,6 @@
    signal (SIGBUS,  mySIGSEGVorSIGBUScatcher);
    #endif
 
-   if ( ! (argc > 1 && strcmp ( "-Q", argv[1] ) == 0) )
-      fprintf ( stderr,
-                "BZIP, a block-sorting file compressor.  "
-                "Version 0.21, 25-August-96.\n" );
-
    #if DEBUG
       if ( ! (argc > 1 && strcmp ( "-Q", argv[1] ) == 0) )
          fprintf ( stderr, "BZIP: *** compiled with debugging ON ***\n" );
@@ -3206,6 +3202,12 @@
                          exit ( 1 );
                          break;
          }
+
+   if (verbose) {
+      fprintf ( stderr,
+                "BZIP, a block-sorting file compressor.  "
+                "Version 0.21, 25-August-96.\n" );
+   }
 
    if ( opMode == OM_FILE_TO_STDOUT && numFileNames != 1) {
       fprintf ( stderr, "%s: Option -c requires you to supply exactly one filename.\n",