make sure that mmap uses a 64bit interface

main
LeRoyce Pearson 2024-04-19 23:12:02 -06:00
parent d3f9b3ca14
commit 9d3afa5f69
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ pub fn build(b: *std.Build) void {
lib.defineCMacro("MAJOR_IN_SYSMACROS", "1");
// lib.defineCMacro("MAJOR_IN_MKDEV", "1");
// we need large file support; see libdrm_macros.h
lib.defineCMacro("_FILE_OFFSET_BITS", "64");
lib.installHeader("libsync.h", "libsync.h");
lib.installHeader("xf86drm.h", "xf86drm.h");
lib.installHeader("xf86drmMode.h", "xf86drmMode.h");