summaryrefslogtreecommitdiff
path: root/data/_apt7/map_anon.diff
blob: 283d36d362184dac5cc271d7de9408a7eed1b6b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -ru apt-0.7.25.3/apt-pkg/contrib/mmap.cc apt-0.7.25.3+iPhone/apt-pkg/contrib/mmap.cc
--- apt-0.7.25.3/apt-pkg/contrib/mmap.cc	2010-02-22 18:15:52.000000000 +0000
+++ apt-0.7.25.3+iPhone/apt-pkg/contrib/mmap.cc	2010-02-22 18:14:42.000000000 +0000
@@ -174,11 +174,11 @@
 #ifdef _POSIX_MAPPED_FILES
    // Set the permissions.
    int Prot = PROT_READ;
-   int Map = MAP_PRIVATE | MAP_ANONYMOUS;
+   int Map = MAP_PRIVATE | MAP_ANON;
    if ((Flags & ReadOnly) != ReadOnly)
       Prot |= PROT_WRITE;
    if ((Flags & Public) == Public)
-      Map = MAP_SHARED | MAP_ANONYMOUS;
+      Map = MAP_SHARED | MAP_ANON;
 
    // use anonymous mmap() to get the memory
    Base = (unsigned char*) mmap(0, WorkSpace, Prot, Map, -1, 0);