apply erlang patch
Merge pull request #5430 from ticoann/apply_erl_patch

apply erlang patch