From 101030ab14d60497fcba5b1c2866d52fc5ac4780 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:55:27 +0000 Subject: More Solaris fixes Author: jgg Date: 1999-12-10 06:30:42 GMT More Solaris fixes --- cmdline/apt-get.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmdline/apt-get.cc') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 88b4ffc2e..cb47666b4 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-get.cc,v 1.92 1999/12/09 05:22:33 jgg Exp $ +// $Id: apt-get.cc,v 1.93 1999/12/10 06:30:42 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -47,7 +47,7 @@ #include #include #include -#include +#include #include #include #include @@ -629,9 +629,9 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true, return false; // Check for enough free space - struct statfs Buf; + struct statvfs Buf; string OutputDir = _config->FindDir("Dir::Cache::Archives"); - if (statfs(OutputDir.c_str(),&Buf) != 0) + if (statvfs(OutputDir.c_str(),&Buf) != 0) return _error->Errno("statfs","Couldn't determine free space in %s", OutputDir.c_str()); if (unsigned(Buf.f_bfree) < (FetchBytes - FetchPBytes)/Buf.f_bsize) -- cgit v1.2.3