pike.git / src / modules / Gz / zlibmod.c

version» Context lines:

pike.git/src/modules/Gz/zlibmod.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: zlibmod.c,v 1.5 1997/03/17 03:07:21 hubbe Exp $"); + RCSID("$Id: zlibmod.c,v 1.6 1997/03/22 21:18:38 grubba Exp $");      #include "zlib_machine.h"   #include "types.h"      #if !defined(HAVE_LIBZ) && !defined(HAVE_LIBGZ)   #undef HAVE_ZLIB_H   #endif      #ifdef HAVE_ZLIB_H   
pike.git/src/modules/Gz/zlibmod.c:25:   #include "object.h"   #include "pike_types.h"   #include "threads.h"   #include "dynamic_buffer.h"      #include <zlib.h>      struct zipper   {    struct z_stream_s gz; + #ifdef _REENTRANT    DEFINE_MUTEX(lock); -  + #endif /* _REENTRANT */   };      #define BUF 16384      #define THIS ((struct zipper *)(fp->current_storage))      static void gz_deflate_create(INT32 args)   {    int level=Z_DEFAULT_COMPRESSION;