Skip to content

Commit 90e466b

Browse files
committed
stdlib: define RTLD_DEFAULT for FreeBSD
It's defined the same as on Darwin and OpenBSD.
1 parent 4603c84 commit 90e466b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/private/StdlibUnittest/SymbolLookup.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#error("Unsupported platform")
2424
#endif
2525

26-
#if canImport(Darwin) || os(OpenBSD)
26+
#if canImport(Darwin) || os(OpenBSD) || os(FreeBSD)
2727
let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: -2)
2828
#elseif os(Linux) || os(WASI)
2929
let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: 0)

0 commit comments

Comments
 (0)