git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15208
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#endif
#include <unistd.h>
-#ifdef __VMS
+#if defined(__DARWIN__)
+// FIXME: select must be used instead of poll (GD)
+#elif defined(__VMS)
# include <poll.h>
#else
# include <sys/poll.h>
wxMutexGuiLeave();
g_mainThreadLocked = TRUE;
+#ifdef __DARWIN__
+ // FIXME: poll is not available under Darwin/Mac OS X and this needs
+ // to be implemented using select instead (GD)
+ // what about other BSD derived systems?
+ res = -1;
+#else
res = poll( (struct pollfd*) ufds, nfds, timeout );
+#endif
wxMutexGuiEnter();
g_mainThreadLocked = FALSE;
#endif
#include <unistd.h>
-#ifdef __VMS
+#if defined(__DARWIN__)
+// FIXME: select must be used instead of poll (GD)
+#elif defined(__VMS)
# include <poll.h>
#else
# include <sys/poll.h>
wxMutexGuiLeave();
g_mainThreadLocked = TRUE;
+#ifdef __DARWIN__
+ // FIXME: poll is not available under Darwin/Mac OS X and this needs
+ // to be implemented using select instead (GD)
+ // what about other BSD derived systems?
+ res = -1;
+#else
res = poll( (struct pollfd*) ufds, nfds, timeout );
+#endif
wxMutexGuiEnter();
g_mainThreadLocked = FALSE;