small glib patch for AIX



This small patch (or something like it) is required to compile gmain.c in
glib-1.1.12 on AIX 4.1.5. The patch explains why it is needed; AIX has two
#define's that in <sys/poll.h> that work against the code in gmain.c that
access the events and revents members of a GPollFD struct.

--gilbert


--- gmain.c	Thu Jan 18 11:24:19 2001
+++ gmain.c.aix	Thu Jan 18 11:08:46 2001
@@ -634,6 +634,18 @@
   g_free (loop);
 }
 
+/* AIX 4.1.5 does this in <sys/poll.h> Fix it. 
+#define events  reqevents
+#define revents rtnevents
+*/
+#ifdef events
+#undef events
+#endif
+#ifdef revents
+#undef revents
+#endif
+
+
 gboolean
 g_main_is_running (GMainLoop *loop)
 {


-- 
Gilbert Ramirez                Voice:  +1 210 358 4032
Technical Services             Fax:    +1 210 358 1122
University Health System       San Antonio, Texas, USA



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