Warning from Sun compiling building texk/web2c/web2c/kps.c

Albert Chin <[email protected]>
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
While building tetex-3.0 on Solaris 9/SPARC with the Sun C compiler:
  cc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..
  -I/opt/TWWfsw/libxaw3d15/include -I/opt/TWWfsw/xpm/include   -mr -Qn
  -xO2 -xtarget=generic -xarch=v8  -c kps.c
  "kps.c", line 39: warning: implicit function declaration: toupper

Fix below.

-- 
albert chin ([email protected])

-- snip snip
--- texk/web2c/web2c/kps.c.orig	2005-06-06 13:17:40.000000000 -0500
+++ texk/web2c/web2c/kps.c	2005-06-06 13:18:04.000000000 -0500
@@ -24,6 +24,7 @@
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "web2c.h"
+#include <ctype.h>
 /* Get rid of kpathsea debug definitions. */
 #undef fopen
 #undef fclose
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.