summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-07-27 13:27:26 +0200
committerJulian Andres Klode <jak@debian.org>2010-07-27 13:27:26 +0200
commit4b12ea903c5166e6215764e6507f6271782df6ff (patch)
treef8861a3b558ce72d1481cb516a5800aa545f5141 /cmdline/apt-get.cc
parent144c096976b2ce05fe64e5761c0df5854f6c0c09 (diff)
* cmdline/apt-get.cc:
- Support large filesystems by using statvfs64() instead of statvfs() and statfs64() instead of statfs() (Closes: #590513).
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 7cf760c27..a6dfd82ed 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -25,6 +25,9 @@
##################################################################### */
/*}}}*/
// Include Files /*{{{*/
+#define _LARGEFILE_SOURCE
+#define _LARGEFILE64_SOURCE
+
#include <apt-pkg/error.h>
#include <apt-pkg/cmndline.h>
#include <apt-pkg/init.h>
@@ -63,6 +66,9 @@
#include <regex.h>
#include <sys/wait.h>
#include <sstream>
+
+#define statfs statfs64
+#define statvfs statvfs64
/*}}}*/
#define RAMFS_MAGIC 0x858458f6