Revert workaround for buggy external implementations on some platforms.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21920 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ayers 2005-10-30 11:37:15 +00:00
parent 3286f15c3b
commit faa862cbe6
2 changed files with 1 additions and 25 deletions

View file

@ -52,28 +52,6 @@ static int gzHeaderSize=10;
//==================================================================== //====================================================================
@implementation NSData (GSWZLib) @implementation NSData (GSWZLib)
/*
(gdb) p c_stream
$2 = {next_in = 0x0, avail_in = 0, total_in = 0, next_out = 0x0,
avail_out = 0, total_out = 0, msg = 0x0, state = 0xfffb000,
zalloc = 0x4806ef64 <zcalloc>, zfree = 0x4806ef88 <zcfree>, opaque = 0x0,
data_type = 0, adler = 0, reserved = 0}
(gdb) bt
#0 0x485aafeb in kill () from /usr/lib/libc.so.12
#1 0x4861fa47 in abort () from /usr/lib/libc.so.12
#2 0x4861e314 in tcgetattr () from /usr/lib/libc.so.12
#3 0x4861ec4d in tcgetattr () from /usr/lib/libc.so.12
#4 0x4861ef27 in malloc () from /usr/lib/libc.so.12
#5 0x4861d1b4 in calloc () from /usr/lib/libc.so.12
#6 0x4806ef82 in zcalloc () from /usr/lib/libz.so.0
#7 0x4806d743 in deflateInit2_ () from /usr/lib/libz.so.0
#8 0x48181f7b in -[NSData(GSWZLib) deflate] (self=0xffa27c8, _cmd=0x481e5e00)
at NSData+Compress.m:64
#9 0x48124737 in -[WOResponse(GSWResponseA) _finalizeContentEncodingInContext:] (self=0xffec608, _cmd=0x481e5e68, aContext=0xfeb8b08) at GSWResponse.m:277
*/
- (NSData *)deflate - (NSData *)deflate
{ {
NSMutableData *outData=nil; NSMutableData *outData=nil;

View file

@ -27,9 +27,7 @@
#undef HAVE_LIBWRAP #undef HAVE_LIBWRAP
#undef HAVE_GDL2 #undef HAVE_GDL2
// enable that to get zlib bugs in gsw #define HAVE_ZLIB 1
//#define HAVE_ZLIB 1
#undef HAVE_ZLIB
#define RCS_ID(name) \ #define RCS_ID(name) \
static const char rcsId[] = name; \ static const char rcsId[] = name; \