* fakepoll.h: Added for OSX
* serial.c:
* signal.c: poll on OSX is broken, so we use a select based
implementation instead.
svn path=/trunk/mono/; revision=158861
+2010-05-13 Geoff Norton <gnorton@novell.com>
+
+ * fakepoll.h: Added for OSX
+ * serial.c:
+ * signal.c: poll on OSX is broken, so we use a select based
+ implementation instead.
+
2010-04-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
* zlib-helper.c: don't call Z_FINISH if nothing has been written.
# Source code which helps implement POSIX and other related Unix standards,
# and *may* be portable between Unix platforms.
MPH_UNIX_SOURCE = \
+ fakepoll.h \
dirent.c \
fcntl.c \
fstab.c \
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
+#include <errno.h>
+#if defined(__APPLE__)
+#include "fakepoll.h"
+#else
#include <sys/poll.h>
+#endif
#include <sys/ioctl.h>
-#include <errno.h>
#include <glib.h>
#ifndef HOST_WIN32
#include <sys/time.h>
#include <sys/types.h>
+#if defined(__APPLE__)
+#include "fakepoll.h"
+#else
#include <poll.h>
+#endif
#include <unistd.h>
#include <stdlib.h>
#include <string.h>