summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-08-19 11:11:58 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-08-19 11:11:58 +0200
commit194f3443c4c405e86f4094efa37269a8b3b7e3e3 (patch)
treefabd3d18955ad2a8c4ff3fc47f83b0a2517521ae /apt-pkg/contrib
parentfa1d338f0c8770d574db4f3728ef4357765185f7 (diff)
parent9a64707c285290c4e191e04d92c0fab9f6f118f5 (diff)
merged from debian-sid
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/mmap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc
index aa52b4c30..4d5fcf71e 100644
--- a/apt-pkg/contrib/mmap.cc
+++ b/apt-pkg/contrib/mmap.cc
@@ -317,7 +317,7 @@ unsigned long DynamicMMap::WriteString(const char *String,
but why we should not at least try to grow it before we give up? */
bool DynamicMMap::Grow()
{
-#ifdef _POSIX_MAPPED_FILES
+#if defined(_POSIX_MAPPED_FILES) && defined(__linux__)
unsigned long newSize = WorkSpace + 1024*1024;
if(Fd != 0)