Fix: SE009 Problem: X11 port fails to compile on Linux (RH6.0) with the following error: gcc -ansi -O2 -I../include -I/usr/X11R6/include -I/usr/include -c ../win/X11/Window.c ../win/X11/Window.c: In function `Redisplay': ../win/X11/Window.c:113: `caddr_t' undeclared (first use this function) ../win/X11/Window.c:113: (Each undeclared identifier is reported only once ../win/X11/Window.c:113: for each function it appears in.) ../win/X11/Window.c:113: parse error before `event' ../win/X11/Window.c: In function `Resize': ../win/X11/Window.c:120: `caddr_t' undeclared (first use this function) ../win/X11/Window.c:120: parse error before `0' make[1]: *** [Window.o] Error 1 Reported by: Chris Holck Notes: This is due to the fact that the GNU C library does not define caddr_t in sys/types.h unless __USE_BSD is defined. In any event, the correct type for the third argument of XtCallCallbacks() is XtPointer, so this is what we should use. Thanks to Chris for help in debugging this problem. Compatible with: Slash'EM 0.0.5E4 Author: J. Ali Harlow, ali@avrc.city.ac.uk Date: 1 Sep 1999 *** win/X11/Window.c.orig Tue Aug 31 15:43:35 1999 --- win/X11/Window.c Tue Aug 31 15:43:50 1999 *************** *** 110,116 **** Region region; /* unused */ { /* This isn't correct - we need to call the callback with region. */ ! XtCallCallbacks(w, XtNexposeCallback, (caddr_t) event); } /* ARGSUSED */ --- 110,116 ---- Region region; /* unused */ { /* This isn't correct - we need to call the callback with region. */ ! XtCallCallbacks(w, XtNexposeCallback, (XtPointer) event); } /* ARGSUSED */ *************** *** 117,123 **** static void Resize(w) Widget w; { ! XtCallCallbacks(w, XtNresizeCallback, (caddr_t) 0); } --- 117,123 ---- static void Resize(w) Widget w; { ! XtCallCallbacks(w, XtNresizeCallback, (XtPointer) 0); }