Mercurial > octave
changeset 21919:473414a91539
* file-io.cc (cleanup_tmp_files): Use octave_unlink_wrapper.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 16 Jun 2016 01:01:53 -0400 |
parents | e4a53d9b28bd |
children | 13e0fc0dfa0c |
files | libinterp/corefcn/file-io.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/file-io.cc Wed Jun 15 15:12:33 2016 -0400 +++ b/libinterp/corefcn/file-io.cc Thu Jun 16 01:01:53 2016 -0400 @@ -58,6 +58,7 @@ #include "mkostemp-wrapper.h" #include "oct-env.h" #include "oct-locbuf.h" +#include "unistd-wrappers.h" #include "defun.h" #include "errwarn.h" @@ -126,7 +127,7 @@ { std::string filename = tmp_files.top (); tmp_files.pop (); - gnulib::unlink (filename.c_str ()); + octave_unlink_wrapper (filename.c_str ()); } }