Skip to content

Commit b841523

Browse files
authored
Merge pull request #61799 from mhjacobson/freebsd-define-RTLD_DEFAULT
stdlib: define RTLD_DEFAULT for FreeBSD
2 parents b526205 + 90e466b commit b841523

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)