From: Hans-Bernhard B. <br...@ph...> - 2004-02-13 09:03:57
|
On Thu, 12 Feb 2004, Petr Mikulik wrote: > > > Compiling gplt_x11.c fails under OS/2 -- I have XFree86 3.3.2 -- can someone > > > help? I guess this is some kind of new code -- there are no SELECT_TYPE_* > > > constants in any X11 header file. > > > > config/config.* need to be updated. > > But how? Read the comments, understand them, and then turn the #undef into a #define with the correct right-hand side (a type, enclosed in parentheses). Just as 'configure' will do. A "man select" or a peek into your platforms <unistd.h> or <sys/select.h> should clarify what to put there. If all else fails, it may help to run ./configure on an OS/2 box and see what it put into config.h. > How should I define it? Or should rather be the code using it be surrounded > by #ifdef PIPE_IPC?? I don't think so. > What does that problematic code mean? It uses the select() system call to wait either for the state of one of several open files to change, or a pre-set time to expire (whichever happens first). As far as I can see, OS2_IPC has only one file handle to watch (X11_ipc, which is gnuplot_x11's input pipe from gnuplot main), PIPE_IPC has a second one: the channel to send back mouse events etc. to gnuplot. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |