Skip to content

Commit

Permalink
otpbp_os: update list_env_vars/0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ledest committed Jun 19, 2024
1 parent c8d0def commit aed953b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/otpbp_os.erl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
-export([list_env_vars/0]).
-endif.

-ifndef(HAVE_os__list_env_vars_0).
-ifdef(HAVE_os__env_0).
-import(os, [env/0]).
-endif.
-endif.

-ifndef(HAVE_os__cmd_2).
cmd(Cmd, Opts) when is_atom(Cmd) -> cmd_(atom_to_list(Cmd), Opts);
cmd(Cmd, Opts) ->
Expand Down Expand Up @@ -89,12 +95,9 @@ flush_until_down(Port, MonRef) ->
-endif.

-ifndef(HAVE_os__list_env_vars_0).
-ifdef(HAVE_os__env_0).
list_env_vars() -> os:env().
-else.
list_env_vars() -> env().
-endif.
-endif.

-ifndef(HAVE_os__env_0).
-ifdef(HAVE_os__list_env_vars_0).
env() -> os:list_env_vars().
Expand Down

0 comments on commit aed953b

Please sign in to comment.