diff options
author | Sebastian Wilhelmi <wilhelmi@ira.uka.de> | 1999-05-26 12:12:21 +0000 |
---|---|---|
committer | Sebastian Wilhelmi <wilhelmi@src.gnome.org> | 1999-05-26 12:12:21 +0000 |
commit | 187c191219196912a2132dcb96059ed4be0acea4 (patch) | |
tree | 2803fbe2cd49de9b44e089bd4ce8b574c96f6369 /gmain.c | |
parent | 78fd20c910e693284cdd803237ed04ec840032e0 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |