summaryrefslogtreecommitdiff
path: root/math/octave-forge-pt_br/files
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2011-07-23 03:31:23 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2011-07-23 03:31:23 +0000
commit5993e9807ec1b5cc11968af6c6d24fc26b019645 (patch)
tree0706f7bdd3b3d92e221071a80259b25b72a506d3 /math/octave-forge-pt_br/files
parentDon't assume GCC. (diff)
- Add patch to fix build errors.
- Bump portrevision. Approved by: maho (mentor, implicit)
Diffstat (limited to 'math/octave-forge-pt_br/files')
-rw-r--r--math/octave-forge-pt_br/files/patch-help.icc38
1 files changed, 38 insertions, 0 deletions
diff --git a/math/octave-forge-pt_br/files/patch-help.icc b/math/octave-forge-pt_br/files/patch-help.icc
new file mode 100644
index 000000000000..9ea3ffc8bf99
--- /dev/null
+++ b/math/octave-forge-pt_br/files/patch-help.icc
@@ -0,0 +1,38 @@
+--- help.icc-orig 2011-07-23 03:15:10.000000000 +0000
++++ help.icc 2011-07-23 03:18:00.000000000 +0000
+@@ -36,6 +36,8 @@
+ #include <octave/parse.h>
+ #include <octave/procstream.h>
+ #include <octave/help.h>
++#include <octave/syswait.h>
++#include <octave/lo-sysdep.h>
+
+ #include "oct-md5.h"
+
+@@ -68,7 +70,7 @@
+ {
+ os.flush ();
+
+- std::string tmp_file_name = file_ops::tempnam ("", "");
++ std::string tmp_file_name = octave_tempnam ("", "");
+
+ int cols = command_editor::terminal_cols ();
+
+@@ -124,7 +126,7 @@
+ warning ("%s:\n\n%s\n\n", HELP_STRING, msg.c_str ());
+ }
+
+- file_ops::unlink (tmp_file_name);
++ octave_unlink (tmp_file_name);
+ }
+ else
+ os << msg;
+@@ -139,7 +141,7 @@
+ std::string h;
+
+ std::string file = octave_env::make_absolute
+- (load_path::find_file (nm + LANG_EXT), octave_env::getcwd ());
++ (load_path::find_file (nm + LANG_EXT), octave_getcwd ());
+
+ if (! file.empty ())
+ {