Add environ extern implementation to freebsd
Signed-off-by: InfRandomness <infrandomness@gmail.com>
This commit is contained in:
parent
602a3dcefd
commit
5ec25359ff
1 changed files with 8 additions and 0 deletions
|
|
@ -442,6 +442,14 @@ impl<'mir, 'tcx> Evaluator<'mir, 'tcx> {
|
|||
Self::add_extern_static(this, name, place.ptr);
|
||||
}
|
||||
}
|
||||
"freebsd" => {
|
||||
// "environ"
|
||||
Self::add_extern_static(
|
||||
this,
|
||||
"environ",
|
||||
this.machine.env_vars.environ.unwrap().ptr,
|
||||
);
|
||||
}
|
||||
"windows" => {
|
||||
// "_tls_used"
|
||||
// This is some obscure hack that is part of the Windows TLS story. It's a `u8`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue