summaryrefslogtreecommitdiff
path: root/gmain.c
diff options
context:
space:
mode:
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>1999-05-26 12:12:21 +0000
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>1999-05-26 12:12:21 +0000
commit187c191219196912a2132dcb96059ed4be0acea4 (patch)
tree2803fbe2cd49de9b44e089bd4ce8b574c96f6369 /gmain.c
parent78fd20c910e693284cdd803237ed04ec840032e0 (diff)
provide a poll() prototype for SunOS, as it doesn't provide one itself.
1999-05-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gmain.c: provide a poll() prototype for SunOS, as it doesn't provide one itself. Reported by Christian Parg <cparg@fs-design.de>.
Diffstat (limited to 'gmain.c')
-rw-r--r--gmain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gmain.c b/gmain.c
index 991bf1264..94740a3c6 100644
--- a/gmain.c
+++ b/gmain.c
@@ -184,6 +184,10 @@ static gboolean poll_changed = FALSE;
#endif /* G_THREADS_ENABLED */
#ifdef HAVE_POLL
+/* SunOS has poll, but doesn't provide a prototype. */
+# if defined (sun) && !defined (__SVR4)
+extern gint poll (GPollFD *ufds, guint nfsd, gint timeout);
+# endif /* !sun */
static GPollFunc poll_func = (GPollFunc) poll;
#else /* !HAVE_POLL */
#ifdef NATIVE_WIN32