summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:12 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:12 +0000
commitd8ea5ec978b2fa1074d84abc4d4e5bab19f2a1ae (patch)
tree280c55a20a39961bc36aef26839beb2145ccecb9 /apt-pkg
parentffa2dc0f56804f055bb2f194c69323cb186d5b1d (diff)
Backed out previous apt-pkg/contrib/mmap.cc fix/kludge/...
Author: doogie Date: 1999-03-18 04:10:21 GMT Backed out previous apt-pkg/contrib/mmap.cc fix/kludge/change.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/mmap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc
index 0e8c6bdd0..cc58862ef 100644
--- a/apt-pkg/contrib/mmap.cc
+++ b/apt-pkg/contrib/mmap.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: mmap.cc,v 1.12 1999/03/18 03:20:24 doogie Exp $
+// $Id: mmap.cc,v 1.13 1999/03/18 04:10:21 doogie Exp $
/* ######################################################################
MMap Class - Provides 'real' mmap or a faked mmap using read().
@@ -31,6 +31,7 @@
#include <sys/mman.h>
#include <sys/stat.h>
+#include <sys/user.h>
#include <unistd.h>
#include <fcntl.h>
/*}}}*/
@@ -118,7 +119,6 @@ bool MMap::Sync()
/* */
bool MMap::Sync(unsigned long Start,unsigned long Stop)
{
- static int PAGE_SIZE = getpagesize();
#ifdef _POSIX_SYNCHRONIZED_IO
if ((Flags & ReadOnly) != ReadOnly)