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.
#include "DiskIO/WriteRequest.h"
#include <sys/mman.h>
+// Some systems such as Hurd provide mmap() API but do not support MAP_NORESERVE
+#ifndef MAP_NORESERVE
+#define MAP_NORESERVE 0
+#endif
+
CBDATA_CLASS_INIT(MmappedFile);
// helper class to deal with mmap(2) offset alignment and other low-level specs