]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/mmap.cc
French translation *comp-ple-ted*!
[apt.git] / apt-pkg / contrib / mmap.cc
index aa52b4c3066ef923ee5c622a98f77a21c0714622..4d5fcf71e67c5bdda2ddf504cf9c39c90d0d1ed9 100644 (file)
@@ -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)