]> git.ipfire.org Git - thirdparty/squid.git/commit
Hurd: define MAP_NORESERVE as no-op when missing
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 24 Apr 2013 15:43:26 +0000 (09:43 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 24 Apr 2013 15:43:26 +0000 (09:43 -0600)
commit8db6705658a82976ee4084d77146dadf7c2169df
tree89fa2708d7ea2c8a81e69b9aa23c78cdbf01b04c
parent8813886dfbffbd49332fb2bd7db8fb26a6a71554
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