Mercurial > hg > octave-lyh
diff liboctave/file-ops.cc @ 10175:d354be89b2c3
use link module from gnulib
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Jan 2010 02:37:26 -0500 |
parents | eb64bf1c6107 |
children | a0665fa8798c |
line wrap: on
line diff
--- a/liboctave/file-ops.cc +++ b/liboctave/file-ops.cc @@ -167,17 +167,13 @@ int status = -1; -#if defined (HAVE_LINK) - status = ::link (old_name.c_str (), new_name.c_str ()); + status = octave_link (old_name.c_str (), new_name.c_str ()); if (status < 0) { using namespace std; msg = ::strerror (errno); } -#else - msg = NOT_SUPPORTED ("link"); -#endif return status; }