[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
missing include in typecast.cc
From: |
John W. Eaton |
Subject: |
missing include in typecast.cc |
Date: |
Thu, 6 Sep 2012 10:40:16 -0400 |
On 6-Sep-2012, CdeMills wrote:
| Hello,
|
| I'm still trying to debug hanging issues on Mac OS X 10.5. I would like to
| start from a minimalist version, so
| I configured octave by disabling everything that I could during the
| configure stage.
|
| The result is that the compilation fails in libinterp/corefcn/typecast.cc,
| as there is no definition of CHAR_BIT. I suppose that, in the full version,
| it came through another included octave header.
|
| Here's the fix:
| hg diff typecast.cc
| diff -r 79baa37fde7a libinterp/corefcn/typecast.cc
| --- a/libinterp/corefcn/typecast.cc Thu Aug 30 08:47:33 2012 +0100
| +++ b/libinterp/corefcn/typecast.cc Thu Sep 06 11:15:53 2012 +0200
| @@ -25,6 +25,8 @@
| #include <config.h>
| #endif
|
| +#include <climits>
| +
| #include "mx-base.h"
|
| #include "defun.h"
|
| My version of "hg" sometimes has issues; I prefer not to push the fix
| myself.
This change has already been made, here:
http://hg.savannah.gnu.org/hgweb/octave/rev/27bdffcb41c5
Are your sources up to date?
jwe