X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=zip.c;h=756c8fd042be9d715d7a1230648ea8ed5ab20cf0;hb=0377937105e413b9c08207bd253f76fe5c1493b1;hp=090fbdfc9feb47be6ee4106df5f410427848acfa;hpb=013796abf4c6be0bd130f541c0ece156156239c3;p=debian%2Fgzip diff --git a/zip.c b/zip.c index 090fbdf..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, 2007 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.7 2007/03/20 05:09:51 eggert Exp $"; -#endif - #include #include @@ -28,12 +24,8 @@ static char rcsid[] = "$Id: zip.c,v 1.7 2007/03/20 05:09:51 eggert Exp $"; #include "gzip.h" #include "crypt.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 */