aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/tftp/tftp.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-10-18 18:08:29 +0200
committerMicael Karlberg <[email protected]>2011-10-18 18:08:29 +0200
commit1193fdece4ff5b5bc127e638db5eeb018014c7af (patch)
tree18a3dbdd40a26db1b83373fbd43ba816af42a44d /lib/inets/src/tftp/tftp.erl
parent32027e9b4724d61aaffe7d3df168e69238f814e9 (diff)
downloadotp-1193fdece4ff5b5bc127e638db5eeb018014c7af.tar.gz
otp-1193fdece4ff5b5bc127e638db5eeb018014c7af.tar.bz2
otp-1193fdece4ff5b5bc127e638db5eeb018014c7af.zip
Make it possible to compile with an R14B compiler.
Diffstat (limited to 'lib/inets/src/tftp/tftp.erl')
-rw-r--r--lib/inets/src/tftp/tftp.erl16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/inets/src/tftp/tftp.erl b/lib/inets/src/tftp/tftp.erl
index b33c0a98f4..8d8fce388d 100644
--- a/lib/inets/src/tftp/tftp.erl
+++ b/lib/inets/src/tftp/tftp.erl
@@ -224,6 +224,20 @@
service_info/1
]).
+-ifdef('OTP-R14B-COMPILER').
+
+-export([behaviour_info/1]).
+
+behaviour_info(callbacks) ->
+ [{prepare, 6},
+ {open, 6},
+ {read, 1},
+ {write, 2},
+ {abort, 3}];
+behaviour_info(_) ->
+ undefined.
+
+-else.
-type peer() :: {PeerType :: inet | inet6,
PeerHost :: inet:ip_address(),
@@ -266,6 +280,8 @@
-callback abort(Code :: error_code(), string(), State :: term()) -> 'ok'.
+-endif.
+
-include("tftp.hrl").