From 55df29b925e8d970729f2c3c7c977dd5bf96ccc8 Mon Sep 17 00:00:00 2001 From: Alexander Nasonov Date: Tue, 29 Mar 2016 21:52:03 +0100 Subject: [PATCH] It also works on NetBSD. --- dasm_mm.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dasm_mm.lua b/dasm_mm.lua index 76dedc7..50571e6 100644 --- a/dasm_mm.lua +++ b/dasm_mm.lua @@ -1,7 +1,7 @@ --wrappers around mmap to support dynamic code exection. --Written by Cosmin Apreutesei. Public Domain. ---Tested with Windows, Linux and OSX, x86 and x86-64. +--Tested with Windows, Linux, BSD and OSX, x86 and x86-64. local ffi = require'ffi' local C = ffi.C @@ -73,7 +73,7 @@ if ffi.os == 'Windows' then end -elseif ffi.os == 'Linux' or ffi.os == 'OSX' then +elseif ffi.os == 'Linux' or ffi.os == 'BSD' or ffi.os == 'OSX' then if ffi.os == 'OSX' then ffi.cdef'typedef int64_t off_t;'