[Midnightbsd-cvs] src [11712] trunk/contrib/bzip2/bzlib.c: make conditional

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Jul 9 18:59:28 EDT 2018


Revision: 11712
          http://svnweb.midnightbsd.org/src/?rev=11712
Author:   laffer1
Date:     2018-07-09 18:59:27 -0400 (Mon, 09 Jul 2018)
Log Message:
-----------
make conditional

Modified Paths:
--------------
    trunk/contrib/bzip2/bzlib.c

Modified: trunk/contrib/bzip2/bzlib.c
===================================================================
--- trunk/contrib/bzip2/bzlib.c	2018-07-09 13:10:26 UTC (rev 11711)
+++ trunk/contrib/bzip2/bzlib.c	2018-07-09 22:59:27 UTC (rev 11712)
@@ -28,8 +28,12 @@
      bzBuffToBuffDecompress.  Fixed.
 */
 
+#include <sys/cdefs.h>
+__MBSDID("$MidnightBSD$");
+
 #include "bzlib_private.h"
 
+#ifndef BZ_NO_COMPRESS
 
 /*---------------------------------------------------*/
 /*--- Compression stuff                           ---*/
@@ -85,6 +89,7 @@
 }
 #endif
 
+#endif /* BZ_NO_COMPRESS */
 
 /*---------------------------------------------------*/
 static
@@ -111,6 +116,7 @@
    if (addr != NULL) free ( addr );
 }
 
+#ifndef BZ_NO_COMPRESS
 
 /*---------------------------------------------------*/
 static
@@ -483,6 +489,7 @@
    return BZ_OK;
 }
 
+#endif /* BZ_NO_COMPRESS */
 
 /*---------------------------------------------------*/
 /*--- Decompression stuff                         ---*/
@@ -877,6 +884,7 @@
    return BZ_OK;
 }
 
+#ifndef BZ_NO_COMPRESS
 
 #ifndef BZ_NO_STDIO
 /*---------------------------------------------------*/
@@ -1566,6 +1574,7 @@
 }
 #endif
 
+#endif /* BZ_NO_COMPRESS */
 
 /*-------------------------------------------------------------*/
 /*--- end                                           bzlib.c ---*/



More information about the Midnightbsd-cvs mailing list