view src/mingw-default-octave-1-msys-fixes.patch @ 3968:d0d5dacd1941

octave: add msys2 patch * src/mingw-default-octave-1-msys-fixes.patch: new file * src/mingw-default-octave-1-msys-fixes.patch: new file * dist-files.mk: add new patches * src/default-octave.mk: add ac_cv_search_tputs=-ltermcap configure option for native mingw * src/octave.mk: add ac_cv_search_tputs=-ltermcap configure option for native mingw
author John Donoghue
date Tue, 16 Jun 2015 11:43:16 -0400
parents
children
line wrap: on
line source

Changes required for octave to compile under msys2

diff -ur octave-4.0.0.orig/libinterp/corefcn/syscalls.cc octave-4.0.0/libinterp/corefcn/syscalls.cc
--- octave-4.0.0.orig/libinterp/corefcn/syscalls.cc	2015-06-14 08:00:55.195888300 -0400
+++ octave-4.0.0/libinterp/corefcn/syscalls.cc	2015-06-14 08:50:10.755418300 -0400
@@ -30,6 +30,7 @@
 #include <config.h>
 #endif
 
+#include <ctime>
 #include <cstdio>
 #include <cstring>
 
diff -ur octave-4.0.0.orig/liboctave/system/file-stat.cc octave-4.0.0/liboctave/system/file-stat.cc
--- octave-4.0.0.orig/liboctave/system/file-stat.cc	2015-06-14 08:00:26.881838600 -0400
+++ octave-4.0.0/liboctave/system/file-stat.cc	2015-06-14 08:49:10.992967600 -0400
@@ -24,6 +24,7 @@
 #include <config.h>
 #endif
 
+#include <ctime>
 #include <cerrno>
 #include <cstring>
 
diff -ur octave-4.0.0.orig/liboctave/system/oct-syscalls.cc octave-4.0.0/liboctave/system/oct-syscalls.cc
--- octave-4.0.0.orig/liboctave/system/oct-syscalls.cc	2015-06-14 08:00:26.913038700 -0400
+++ octave-4.0.0/liboctave/system/oct-syscalls.cc	2015-06-14 08:49:37.309661500 -0400
@@ -24,6 +24,7 @@
 #include <config.h>
 #endif
 
+#include <ctime>
 #include <cerrno>
 #include <cstdlib>
 
diff -ur octave-4.0.0.orig/libinterp/corefcn/oct-tex-lexer.cc octave-4.0.0/libinterp/corefcn/oct-tex-lexer.cc
--- octave-4.0.0.orig/libinterp/corefcn/oct-tex-lexer.cc	2015-06-14 14:15:46.436310300 -0400
+++ octave-4.0.0/libinterp/corefcn/oct-tex-lexer.cc	2015-06-14 14:24:23.464145100 -0400
@@ -3,7 +3,7 @@
 #include <config.h>
 #endif
 
-
+#include <ctime>
 
 
 #line 10 "corefcn/oct-tex-lexer.cc"