File otp_src_18.3.3-revert-gen_debug_options_1.patch of Package erlang

diff -Ndurp otp_src_18.3.3/lib/stdlib/src/gen.erl otp_src_18.3.3-revert-gen_debug_options_1/lib/stdlib/src/gen.erl
--- otp_src_18.3.3/lib/stdlib/src/gen.erl	2016-05-09 19:55:05.000000000 +0300
+++ otp_src_18.3.3-revert-gen_debug_options_1/lib/stdlib/src/gen.erl	2016-05-09 19:56:55.000000000 +0300
@@ -26,7 +26,7 @@
 %%%
 %%% The standard behaviour should export init_it/6.
 %%%-----------------------------------------------------------------
--export([start/5, start/6, debug_options/2,
+-export([start/5, start/6, debug_options/1, debug_options/2,
 	 name/1, unregister_name/1, get_proc_name/1, get_parent/0,
 	 call/3, call/4, reply/2, stop/1, stop/3]).
 
@@ -408,6 +408,8 @@ spawn_opts(Options) ->
 	    []
     end.
 
+debug_options(Opts) -> debug_options(undefined, Opts).
+
 debug_options(Name, Opts) ->
     case lists:keyfind(debug, 1, Opts) of
 	{_,Options} ->
openSUSE Build Service is sponsored by