blob: 3752e765dafc431742763df45dde2f01e98773d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ab,v 1.3 2005/03/10 12:55:08 dmcmahill Exp $
fix compilation on solaris. Patch taken from octave's cvs
--- liboctave/file-ops.cc.orig 2005-02-09 18:11:11.000000000 -0500
+++ liboctave/file-ops.cc 2005-03-09 07:52:22.689776000 -0500
@@ -356,7 +356,7 @@
// directory if the path is not absolute.
- name = octave_env::make_absolute (name);
+ std::string absolute_name = octave_env::make_absolute (name, octave_env::getcwd() );
- size_t resolved_size = name.length ();
+ size_t resolved_size = absolute_name.length ();
while (1)
@@ -366,5 +366,5 @@
OCTAVE_LOCAL_BUFFER (char, resolved, resolved_size);
- resolved_len = ::resolvepath (name, resolved, resolved_size);
+ int resolved_len = ::resolvepath (absolute_name.c_str(), resolved, resolved_size);
if (resolved_len < 0)
|