diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-08-15 18:22:35 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-08-15 18:22:35 +0100 |
| commit | a6e6a4d654ee13e13cf14ac113bbd317ce70185b (patch) | |
| tree | b416f682c2fd6e313174c8b9c6dbc636e9e6cdf9 /src | |
| parent | 9f7cb18cb4c5484ad8fba98868db000a3c9d0185 (diff) | |
| download | rabbitmq-server-git-a6e6a4d654ee13e13cf14ac113bbd317ce70185b.tar.gz | |
Restore behaviour_info/1 on older Erlang, don't emit so many warnings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/supervisor2.erl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl index 4eafd3b129..92ecb0df3d 100644 --- a/src/supervisor2.erl +++ b/src/supervisor2.erl @@ -171,6 +171,15 @@ MaxT :: non_neg_integer()}, [ChildSpec :: child_spec()]}} | ignore. +-else. + +-export([behaviour_info/1]). + +behaviour_info(callbacks) -> + [{init,1}]; +behaviour_info(_Other) -> + undefined. + -endif. -define(restarting(_Pid_), {restarting,_Pid_}). |
