]> git.ipfire.org Git - thirdparty/squid.git/commit
GNU Hurd: define MAP_NORESERVE as no-op when missing
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 26 Apr 2013 04:12:14 +0000 (22:12 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 26 Apr 2013 04:12:14 +0000 (22:12 -0600)
commitb2cb6b52a9b72bb2e797109d539f01b083911f67
treed5d24a8ecccbff52bec8864ca30067a7978ae921
parente1c2793222961a81fda20fe5bf326f5bfd688e37
GNU Hurd: define MAP_NORESERVE as no-op when missing

Some systems like GNU Hurd provide the mmap() API but lack MAP_NORESERVE
support. This option is an optimization, so we can define the macro
ourselves to nil and apparently not suffer (many) bad side effects.
src/DiskIO/Mmapped/MmappedFile.cc