VirtualBox

Changeset 50011 in vbox for trunk/src/libs/xpcom18a4/nsprpub


Ignore:
Timestamp:
Dec 28, 2013 7:55:26 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91458
Message:

Failed experiment with poll() on darwin.

Location:
trunk/src/libs/xpcom18a4/nsprpub/pr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/_darwin.h

    r16391 r50011  
    7272#define _PR_HAVE_LARGE_OFF_T
    7373#define PR_HAVE_SYSV_NAMED_SHARED_MEMORY
     74
     75#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 /* Mac OS X 10.6 has poll(). */
     76# if 0 /* ... but we don't use it because it performs worse on Mt. Lion - WEIRD! */
     77# define _PR_POLL_AVAILABLE     1
     78# define _PR_USE_POLL           1
     79# endif
     80#endif
    7481
    7582#define _PR_INET6
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptio.c

    r33044 r50011  
    187187
    188188#include "primpl.h"
     189
     190#if defined(VBOX) && defined(_PR_POLL_AVAILABLE)
     191# include <poll.h>
     192#endif
    189193
    190194#include <netinet/tcp.h>  /* TCP_NODELAY, TCP_MAXSEG */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette