If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Define FD_SETSIZE for Neutrino

RESOLVED FIXED

Status

NSPR
NSPR
P3
normal
RESOLVED FIXED
17 years ago
17 years ago

People

(Reporter: Wan-Teh Chang, Assigned: Wan-Teh Chang)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

17 years ago
We need to define FD_SETSIZE to a larger value such as 4096
before including <sys/select.h> so that fd_set's (for select)
are large enough for big file descriptors.
(Assignee)

Comment 1

17 years ago
Created attachment 11496 [details] [diff] [review]
Proposed patch (based on Jerry Kirk's patch).
(Assignee)

Comment 2

17 years ago
Jerry, please give my patch a try.
I moved all the select-related header includes
to the front of _nto.h and addded the FD_SETSIZE
#define before them.

Comment 3

17 years ago
wtc,
 Thanks for the checkin your patch works fine.
(Assignee)

Comment 4

17 years ago
I checked in the patch.
On the NSPRPUB_CLIENT_BRANCH.
/cvsroot/mozilla/nsprpub/pr/include/md/_nto.h, revision 3.3.22.1
On the NSPRPUB_RELEASE_4_0_BRANCH.
/cvsroot/mozilla/nsprpub/pr/include/md/_nto.h, revision 3.3.8.1
On the main trunk.
/cvsroot/mozilla/nsprpub/pr/include/md/_nto.h, revision 3.6
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.