Package: kterm
Severity: normal
Tags: patch

kterm fails to build from source with gcc-3.4/gcc-4.0:

charproc.c:105: error: conflicting types for 'malloc'

The following patch allows kterm to build under gcc-3.4:


--- button.c.orig       2005-07-19 19:47:06.000000000 -0700
+++ button.c    2005-07-19 19:46:02.000000000 -0700
@@ -41,7 +41,11 @@
 #include "error.h"
 #include "menu.h"
 
+#ifndef X_NOT_STDC_ENV
+#include <stdlib.h>
+#else
 extern char *malloc();
+#endif
 
 extern void DoSecureKeyboard();
  

--- charproc.c.orig     2005-07-19 19:43:14.000000000 -0700
+++ charproc.c  2005-07-19 19:46:20.000000000 -0700
@@ -101,9 +101,13 @@
 
 extern XtAppContext app_con;
 extern Widget toplevel;
+#ifndef X_NOT_STDC_ENV
+#include <stdlib.h>
+#else
 extern void exit();
 extern char *malloc();
 extern char *realloc();
+#endif
 extern fd_set Select_mask;
 extern fd_set X_mask;
 extern fd_set pty_mask;


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

Reply via email to