diff options
author | Sam Bingner <sam@bingner.com> | 2018-12-07 13:01:05 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2018-12-07 13:01:05 -1000 |
commit | dabe8669a56fca398da9a7dd117eb74f874cddc0 (patch) | |
tree | 1e9f41f484e72a02652b600498a7b09aee62b7e6 /data/_apt7/map_anon.diff | |
parent | bae6eae573376ebc0e942e88c4f6eaea9b0f1574 (diff) |
Update to use libapt instead of apt7-lib for apt1.4+ and add apt-rdepends
Diffstat (limited to 'data/_apt7/map_anon.diff')
-rw-r--r-- | data/_apt7/map_anon.diff | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/data/_apt7/map_anon.diff b/data/_apt7/map_anon.diff new file mode 100644 index 000000000..283d36d36 --- /dev/null +++ b/data/_apt7/map_anon.diff @@ -0,0 +1,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); |