Package: chiark-tcl
Version: 1.1.0
Severity: normal
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu intrepid ubuntu-patch

Hello,

trying to build your package with gcc-4.3 (as Ubuntu does now) leads to
the following error:
,----
| hook.c: In function 'cht_obj_updatestr_vstringls':
| hook.c:62: error: 'INT_MAX' undeclared (first use in this function)
| hook.c:62: error: (Each undeclared identifier is reported only once
| hook.c:62: error: for each function it appears in.)
`----
As INT_MAX is used in several files but none includes limits.h, I found
it best to add the missing include of limits.h to base/chiark-tcl.h to
keep the changes small (this seems to be a common header file).

Regards,
Michael

diff -Nru chiark-tcl-1.1.0/base/chiark-tcl.h 
chiark-tcl-1.1.0ubuntu1/base/chiark-tcl.h
--- chiark-tcl-1.1.0/base/chiark-tcl.h  2006-10-20 13:35:04.000000000 +0200
+++ chiark-tcl-1.1.0ubuntu1/base/chiark-tcl.h   2008-07-08 17:01:32.000000000 
+0200
@@ -30,6 +30,7 @@
 #include <sys/uio.h>
 #include <sys/un.h>
 #include <arpa/inet.h>
+#include <limits.h>
 
 #ifndef _TCL /* if someone already included some tcl.h, use that */
 #include <tcl.h>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to