mark@zok.UUCP (Mark W. Snitily) (10/01/90)
The recent MIT X1R4 fix-15, fix-16, fix-17 changed the typedef of XtPointer (see Intrinsic.h) for compilers that define __STDC__. It's now a pointer to void instead of a pointer to a character. This causes gcc (1.37.1 on a Sun3) to hiccup when compiling .../src/mit/clients/xterm/charproc.c. Not sure if type casting to a (char *) is the "correct" solution, but it's enough to get gcc to compile xterm. Here's the patch: *** charproc.c.org Fri Mar 23 14:57:11 1990 --- charproc.c Sun Sep 30 18:07:31 1990 *************** *** 2618,2624 **** if (*type != XA_STRING || *format != 8) { Bell(); return; } len = strlen(value); if (len > 0) { ! if (value[len-1] == '\n') value[len-1] = '\0'; if (!LoadNewFont (&term->screen, value, NULL, True, fontMenu_fontescape)) Bell(); --- 2618,2624 ---- if (*type != XA_STRING || *format != 8) { Bell(); return; } len = strlen(value); if (len > 0) { ! if (((char *)value)[len-1] == '\n') ((char *)value)[len-1] = '\0'; if (!LoadNewFont (&term->screen, value, NULL, True, fontMenu_fontescape)) Bell(); -- Mark Mark W. Snitily Consulting Services: 894 Brookgrove Lane Graphics, Operating Systems, Compilers Cupertino, CA 95014 (408) 252-0456 mark@zok.uucp West Coast UUCP X11 archive site If your mailer doesn't like the .uucp domain, these also work: ...!{mips,sgi}!zok!mark, mark%zok@mips.com, mark%zok@sgi.com