X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/8bdbcf67d5686ab823e466e6df7900aec8c21c1a..4c42650716d7347770e60260cff8d0d4777aaec0:/apt-inst/contrib/extracttar.h?ds=sidebyside diff --git a/apt-inst/contrib/extracttar.h b/apt-inst/contrib/extracttar.h index 6daf00a27..22bb69e66 100644 --- a/apt-inst/contrib/extracttar.h +++ b/apt-inst/contrib/extracttar.h @@ -14,16 +14,18 @@ #ifndef PKGLIB_EXTRACTTAR_H #define PKGLIB_EXTRACTTAR_H -#ifdef __GNUG__ -#pragma interface "apt-pkg/extracttar.h" -#endif - #include -#include +#include -#include +#include +#ifndef APT_8_CLEANER_HEADERS +#include +#include using std::min; +#endif + +class pkgDirStream; class ExtractTar { @@ -38,11 +40,11 @@ class ExtractTar GNU_LongLink = 'K',GNU_LongName = 'L'}; FileFd &File; - unsigned long MaxInSize; + unsigned long long MaxInSize; int GZPid; FileFd InFd; bool Eof; - string DecompressProg; + std::string DecompressProg; // Fork and reap gzip bool StartGzip(); @@ -51,8 +53,8 @@ class ExtractTar public: bool Go(pkgDirStream &Stream); - - ExtractTar(FileFd &Fd,unsigned long Max,string DecompressionProgram); + + ExtractTar(FileFd &Fd,unsigned long long Max,std::string DecompressionProgram); virtual ~ExtractTar(); };