Browse Source

posix: fix foreign import of dl for free/netbsd

Laytan Laats 1 year ago
parent
commit
ffff3c3c88
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/sys/posix/dlfcn.odin

+ 2 - 0
core/sys/posix/dlfcn.odin

@@ -4,6 +4,8 @@ import "core:c"
 
 when ODIN_OS == .Darwin {
 	foreign import lib "system:System.framework"
+} else when ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD {
+	foreign import lib "system:dl"
 } else {
 	foreign import lib "system:c"
 }