Skip to content

Commit 937e141

Browse files
authored
Merge pull request swiftlang#28968 from 3405691582/environ_llvm_assert
[stdlib] Fix a LLVM assert on *BSD.
2 parents 40c4485 + a6b0e92 commit 937e141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SwiftShims/LibcOverlayShims.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static inline int _swift_stdlib_fcntlPtr(int fd, int cmd, void* ptr) {
5252
#endif
5353

5454
// Environment
55-
#if defined(__FreeBSD__)
55+
#if defined(__FreeBSD__) || defined(__OpenBSD__)
5656
static inline char * _Nullable * _Null_unspecified _swift_stdlib_getEnviron() {
5757
extern char **environ;
5858
return environ;

0 commit comments

Comments
 (0)