From affde2d07f069979c70c03537cc04bcb69de4243 Mon Sep 17 00:00:00 2001 From: Charlotte Koch Date: Tue, 5 Nov 2024 15:49:35 -0800 Subject: [PATCH] runtime: add MAP_ANONYMOUS as a valid synonym for MAP_ANON in NetBSD --- src/runtime/defs_netbsd.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/runtime/defs_netbsd.go b/src/runtime/defs_netbsd.go index ec4d796bd32..a48de2ae817 100644 --- a/src/runtime/defs_netbsd.go +++ b/src/runtime/defs_netbsd.go @@ -45,9 +45,10 @@ const ( PROT_WRITE = C.PROT_WRITE PROT_EXEC = C.PROT_EXEC - MAP_ANON = C.MAP_ANON - MAP_PRIVATE = C.MAP_PRIVATE - MAP_FIXED = C.MAP_FIXED + MAP_ANON = C.MAP_ANON + MAP_ANONYMOUS = C.MAP_ANON + MAP_PRIVATE = C.MAP_PRIVATE + MAP_FIXED = C.MAP_FIXED MADV_DONTNEED = C.MADV_DONTNEED MADV_FREE = C.MADV_FREE