From 4aec582a05a5df06f10345ec77df5941b7e30564 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 11 Jun 2025 15:27:00 +0100 Subject: [PATCH] Add `system:dl` to `foreign import` for dlfcn.odin --- core/sys/posix/dlfcn.odin | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/sys/posix/dlfcn.odin b/core/sys/posix/dlfcn.odin index e84b29d79..378c95c32 100644 --- a/core/sys/posix/dlfcn.odin +++ b/core/sys/posix/dlfcn.odin @@ -8,7 +8,10 @@ when ODIN_OS == .Darwin { } else when ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD { foreign import lib "system:dl" } else { - foreign import lib "system:c" + foreign import lib { + "system:c", + "system:dl", + } } // dlfcn.h - dynamic linking