X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=zip.c;h=756c8fd042be9d715d7a1230648ea8ed5ab20cf0;hb=26cd8af14e8b28ea287fd8342cba35bdc81c75f4;hp=6b6d527da19a17a1441f9a55c9257a633da1fe30;hpb=e7921f54c622e3b32e525f345bc34308821e4ae0;p=debian%2Fgzip diff --git a/zip.c b/zip.c index 6b6d527..756c8fd 100644 --- a/zip.c +++ b/zip.c @@ -1,11 +1,11 @@ /* zip.c -- compress files to the gzip or pkzip format - Copyright (C) 1997, 1998, 1999, 2006 Free Software Foundation, Inc. + Copyright (C) 1997-1999, 2006-2007, 2009-2010 Free Software Foundation, Inc. Copyright (C) 1992-1993 Jean-loup Gailly This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -17,10 +17,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef RCSID -static char rcsid[] = "$Id: zip.c,v 1.6 2006/12/11 18:54:39 eggert Exp $"; -#endif - #include #include @@ -28,14 +24,8 @@ static char rcsid[] = "$Id: zip.c,v 1.6 2006/12/11 18:54:39 eggert Exp $"; #include "gzip.h" #include "crypt.h" -#include "timespec.h" - -#ifdef HAVE_UNISTD_H -# include -#endif -#ifdef HAVE_FCNTL_H -# include -#endif +#include +#include local ulg crc; /* crc on uncompressed file data */ off_t header_bytes; /* number of bytes in gzip header */