From d555bf6ebe3c0b00754f0c07fcd6f03e86f68d3e Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 26 Mar 2026 21:04:52 +0000 Subject: [PATCH] oops --- src/common/host_memory.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index f9be4d3e71..04f3a65778 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp @@ -505,14 +505,8 @@ public: fd = shm_open_anon(O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600); #elif defined(__OpenBSD__) fd = shm_open_anon(O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600); -#elif defined(__FreeBSD__) && __FreeBSD__ < 13 - // XXX Drop after FreeBSD 12.* reaches EOL on 2024-06-30 +#elif defined(__FreeBSD__) fd = shm_open(SHM_ANON, O_RDWR, 0600); -#elif defined (__FreeBSD__) && __FreeBSD__ >= 13 - fd = shm_open(SHM_ANON, O_RDWR, 0600); - // fd = shm_create_largepage(SHM_ANON, O_RDWR, 1, SHM_LARGEPAGE_ALLOC_DEFAULT, 0600); - // LOG_WARNING(Common_Memory, "fd = {}", fd); - // LOG_WARNING(Common_Memory, "memfd_create: {}", strerror(errno)); #elif defined(__APPLE__) // macOS doesn't have memfd_create, use anonymous temporary file char template_path[] = "/tmp/eden_mem_XXXXXX";