diff options
author | Raimo Niskanen <[email protected]> | 2011-06-08 16:03:31 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2011-06-08 16:03:31 +0200 |
commit | 45f5b2719226fe60dd26dd23ce4c1f7f9ca9225b (patch) | |
tree | 29b7d3f9959857d2601692587cb484dee6e068a1 /erts/preloaded/src/prim_file.erl | |
parent | ca9d9f74e01ba63ff38c530707ef08db3ea2daea (diff) | |
parent | 3b818d5ec09cd2bb4c650776b898af9206f13c68 (diff) | |
download | otp-45f5b2719226fe60dd26dd23ce4c1f7f9ca9225b.tar.gz otp-45f5b2719226fe60dd26dd23ce4c1f7f9ca9225b.tar.bz2 otp-45f5b2719226fe60dd26dd23ce4c1f7f9ca9225b.zip |
Merge branch 'dev' into major
Diffstat (limited to 'erts/preloaded/src/prim_file.erl')
-rw-r--r-- | erts/preloaded/src/prim_file.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/preloaded/src/prim_file.erl b/erts/preloaded/src/prim_file.erl index 8e0790e74a..ac7570582e 100644 --- a/erts/preloaded/src/prim_file.erl +++ b/erts/preloaded/src/prim_file.erl @@ -63,7 +63,7 @@ -include("file.hrl"). --define(DRV, efile). +-define(DRV, "efile"). -define(FD_DRV, "efile"). -define(LARGEFILESIZE, (1 bsl 63)). @@ -549,7 +549,7 @@ write_file(_, _) -> %% Returns {ok, Port}, the Port should be used as first argument in all %% the following functions. Returns {error, Reason} upon failure. start() -> - try erlang:open_port({spawn, atom_to_list(?DRV)}, [binary]) of + try erlang:open_port({spawn, ?DRV}, [binary]) of Port -> {ok, Port} catch |