Support the equivalent of the mmap and direct buffer backends for Win32
for building the Windows version, we must set mmap-buffer-backend
and direct-buffer-backend
as false
option('mmap-buffer-backend', type : 'boolean', value: false, description: 'Build `mmap` buffer backend')
option('direct-buffer-backend', type : 'Boolean', value: false, description: 'Build `direct` buffer backend')
Because the headers couldn't be found
check_headers_mmap = [
'unistd.h',
'fcntl.h',
'sys/stat.h',
'sys/mman.h',
]
check_headers_direct = [
'unistd.h',
'fcntl.h',
'sys/ioctl.h',
'linux/fs.h',
]