Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5ec2535

Browse files
committed
Add environ extern implementation to freebsd
Signed-off-by: InfRandomness <[email protected]>
1 parent 602a3dc commit 5ec2535

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/machine.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,14 @@ impl<'mir, 'tcx> Evaluator<'mir, 'tcx> {
442442
Self::add_extern_static(this, name, place.ptr);
443443
}
444444
}
445+
"freebsd" => {
446+
// "environ"
447+
Self::add_extern_static(
448+
this,
449+
"environ",
450+
this.machine.env_vars.environ.unwrap().ptr,
451+
);
452+
}
445453
"windows" => {
446454
// "_tls_used"
447455
// This is some obscure hack that is part of the Windows TLS story. It's a `u8`.

0 commit comments

Comments
 (0)