Bug 1516325 - Use poll() in NSPR on MacOS. r=glandium

This is being changed in Firefox's build config rather than NSPR's
to avoid possibly introducing regressions into other NSPR users due
to bugs in MacOS's poll, such as the POLLPRI issue addressed in the
previous patch.  (There is also a known bug when calling poll() with
zero descriptors, but PR_Poll already has code to call PR_Sleep instead
in that case.)

Depends on D21321

Differential Revision: https://phabricator.services.mozilla.com/D21322

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jed Davis 2019-02-27 15:12:21 +00:00
Родитель 0004ada24c
Коммит 07a3a4354d
1 изменённых файлов: 1 добавлений и 0 удалений

1
config/external/nspr/pr/moz.build поставляемый
Просмотреть файл

@ -53,6 +53,7 @@ elif CONFIG['OS_TARGET'] == 'Darwin':
HAVE_BSD_FLOCK=True,
HAVE_SOCKLEN_T=True,
HAVE_POINTER_LOCALTIME_R=True,
_PR_POLL_AVAILABLE=True,
)
SOURCES += [
'/nsprpub/pr/src/md/unix/darwin.c',