_GPollFD conflicts on AIX



<glib/gmain.h> defines:
  struct _GPollFD
  {
    gint          fd;
    gushort       events;
    gushort       revents;
  };

Unfortunately, on AIX 4.3.2 and 5.1 in <sys/poll.h> we have:
  #define events  reqevents               /* SVR3,4 pollfd member name */
  #define revents rtnevents               /* SVR3,4 pollfd member name */

So, if a .c file #includes <sys/poll.h> directly or indirectly and
<glib/gmain.h>, the events/revents members get renamed. How should we
solve this?

-- 
albert chin (china thewrittenword com)



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