Re: GLIB compile problem (dependencies?)



nakai> Currently glib/gmain.c is broken on FreeBSD because POLLIN, POLLOUT,
nakai> POLLPRI can't be referred.

I've just make patch for this but only for compile. I don't this is correct
for running...

Yukihiro Nakai
--------------
diff -u -r1.2 gmain.c
--- gmain.c     1998/12/02 14:55:26     1.2
+++ gmain.c     1998/12/07 06:48:23
@@ -151,8 +151,10 @@
          FD_SET (f->fd, &wset);
        if (f->events & G_IO_PRI)
          FD_SET (f->fd, &xset);
+#ifdef HAVE_POLL
        if (f->fd > maxfd && (f->events & (POLLIN|POLLOUT|POLLPRI)))
          maxfd = f->fd;
+#endif
       }
 
   tv.tv_sec = timeout / 1000;
@@ -596,8 +598,10 @@
 {
   if (func)
     poll_func = func;
+#ifdef HAVE_POLL
   else
     poll_func = (GPollFunc)poll;
+#endif
 }
 
 /* Timeouts */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]