mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 00:48:53 +02:00
if _POLL_EMUL_H is defined, undefine HAVE_POLL to prefer our own poll()
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com> * glib/gmain.c: if _POLL_EMUL_H is defined, undefine HAVE_POLL to prefer our own poll() emulation to the lame OS/X one. (#136956, Manish Singh)
This commit is contained in:
@@ -48,6 +48,14 @@
|
||||
# include <sys/poll.h>
|
||||
# undef events /* AIX 4.1.5 & 4.3.2 define this for SVR3,4 compatibility */
|
||||
# undef revents /* AIX 4.1.5 & 4.3.2 define this for SVR3,4 compatibility */
|
||||
|
||||
/* The poll() emulation on OS/X doesn't handle fds=NULL, nfds=0,
|
||||
* so we prefer our own poll emulation.
|
||||
*/
|
||||
#ifdef _POLL_EMUL_H_
|
||||
#undef HAVE_POLL
|
||||
#endif
|
||||
|
||||
#endif /* GLIB_HAVE_SYS_POLL_H */
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
|
Reference in New Issue
Block a user