From bug-octave-request at bevo dot che dot wisc dot edu Thu Feb 10 08:05:52 2000 Subject: compiling octave 2.1.27 From: "W. L. Estes" To: bug-octave at bevo dot che dot wisc dot edu Date: Thu, 10 Feb 2000 09:09:11 -0500 I needed the following patch to get octave 2.1.27 to compile on my i386-redhat-linux (glibc2.1) box. the patch applied without complaint to 2.1.28 as well. ===File ~/mat/in/octave-2.1.27-time.patch=================== to get strptime, we need _XOPEN_SOURCE; to get the tm_zone field in struct tm, we need _BSD_SOURCE --- octave-2.1.27/liboctave/oct-time.cc~ Mon Feb 7 04:40:21 2000 +++ octave-2.1.27/liboctave/oct-time.cc Wed Feb 9 04:56:37 2000 at @ -24,12 +24,13 @@ #include #endif +#define _BSD_SOURCE +#define _XOPEN_SOURCE #include #include #include "lo-error.h" #include "lo-utils.h" -#define __USE_XOPEN #include "oct-time.h" #if !defined (HAVE_STRPTIME) ============================================================ ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------