-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix table size for android #1584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hi @karol-bisztyga! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
| #ifdef __ANDROID__ | ||
| int tableSize = sysconf(_SC_OPEN_MAX); | ||
| #else | ||
| int tableSize = getdtablesize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason to keep the call to getdtablesize on non-Android platforms, seeing as it's less portable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never really tested it on all other platforms - I just checked android and it works on it. To change it for every platform I should check every one of them, don't you think?
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
|
@yfeldblum has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@yfeldblum merged this pull request in beded0e. |
Description
Hi!
I wanted to fix a build of folly on Android.
Trying to use folly's
MPMCQueueon Android triggers the following error:where
{xxx}is a local path on my machine.Here is a branch of my project that reproduces the problem(I've already fixed it by patching
follyso you can see what patch has to be removed in order to make it fail here).From the man page for
getdtablesize:Related issues:
#1279
#918 - probably, I cannot see bug details.