********> bugfix.9 Author: Bill Ross Date: Mar 6, 2000 Updated: Mar 8, 2000 - added Fix2 Programs: xleap Description: Xraw package used by xleap won't compile on Unicos Fix1: Make the following change to leap/src/Xraw/Table2.c: ----------------------------------------------------------------------------- *** OLD Table2.c --- NEW Table2.c *************** *** 463,469 **** static int literal_width; if (tw->table.encoding) ! tw->table.literal_width = XTextWidth16(tw->table.font, (TXT_16*)"mmm", 3); else tw->table.literal_width = XTextWidth(tw->table.font, "mmm", 3); --- 463,469 ---- static int literal_width; if (tw->table.encoding) ! tw->table.literal_width = XTextWidth16(tw->table.font, (XChar2b*)"mmm", 3); else tw->table.literal_width = XTextWidth(tw->table.font, "mmm", 3); ----------------------------------------------------------------------------- Fix2: make the following change to leap/src/leap/sysdepend.c ----------------------------------------------------------------------------- *** OLD sysdepend.c --- NEW sysdepend.c *************** *** 65,70 **** --- 65,74 ---- #include #include + /* this works on Unicos and can't hurt others: */ + #ifndef MAXPATHLEN + # define MAXPATHLEN PATH_MAX + #endif /* *------------------------------------------------------------------ *************** *** 255,324 **** } - /* - *-------------------------------------------------------- - * - * 100ms timer interrupt - * - */ - - VFUNCTION GfTimerCallback = NULL; - - - /* - * zSysdependTimerCallback - * - * Author: Christian Schafmeister (1991) - * - * Handle timer interrupts from operating system. - * If GfTimerCallback is not NULL then call it - * as a callback. - */ - static void - zSysdependTimerCallback () - { - - if (GfTimerCallback != NULL) - (GfTimerCallback) (); - - } - - - /* - * SysdependInterruptOn - * - * Author: Christian Schafmeister (1991) - * - * Turn on a 100ms timer interrupt that the caller - * can hook into through a callback function GfTimerCallback. - */ - static void - SysdependInterruptOn () - { - struct itimerval itValue; - struct itimerval itOldValue; - - itValue.it_interval.tv_sec = 0; - itValue.it_interval.tv_usec = 100000; - itValue.it_value.tv_sec = 0; - itValue.it_value.tv_usec = 100000; - signal (SIGALRM, zSysdependTimerCallback); - - setitimer (ITIMER_REAL, &itValue, &itOldValue); - } - - /* - * SysdependInterruptOff - * - * Author: Christian Schafmeister (1991) - * - * Turn off a 100ms timer interrupt that the caller - * can hook into through a callback function GfTimerCallback. - */ - static void - SysdependInterruptOff () - { - signal (SIGALRM, SIG_DFL); - } --- 259,263 ---- -----------------------------------------------------------------------------