summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/ocamldep.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ocamldep.ml b/tools/ocamldep.ml
index 68b455883..04e81477d 100644
--- a/tools/ocamldep.ml
+++ b/tools/ocamldep.ml
@@ -313,7 +313,7 @@ let file_dependencies source_file =
if Sys.file_exists source_file then begin
try
free_structure_names := StringSet.empty;
- let ic = open_in source_file in
+ let ic = open_in_bin source_file in
try
let lb = Lexing.from_channel ic in
if Filename.check_suffix source_file ".ml" then begin