-
Notifications
You must be signed in to change notification settings - Fork 162
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
Reset 'errno' after 'sysconf()' #51
Conversation
To provide a bit more background on why this fix is needed: In our case, recent Android NDKs now define Not all platforms support it, which is why a check for |
I can confirm that this patch fixes an issue I had where incrementing a The unpatched code works fine when built with NDK r12b, since |
I am confirming that this patch fixes bug #72 for me on Sony Xperia Z5 phone running Android 5.1.1 when building a test app with Android NDK r16b. |
Non-maintainer review of the patch. Hopefully will help the maintainers to spend less time on their official review. The patch is tiny, straightforward, very understandable. It has zero risk of introducing a regression. The patch can benefit from a code comment, explaining why Even if the patch can be improved, I think it is already good and can be merged in. |
Dear maintainers, @Beman and @pdimov , can you please merge this tiny patch? It solves quite a major issue and has zero regression risk. Without this patch, Boost.Filesystem is basically unusable on Android. With this patch and the already-merged #69 , the next release of Boost.Filesystem can be "Android-ready". |
Which version of boost will this fix be available in? 1.67? |
1.68, due in a few days. |
Make that a few weeks, 1.68 is scheduled for Aug 1st. :-) |
In our case (we haven't gotten to the bottom of exactly why),
sysconf()
returns -1 and setserrno == 38
(ENOSYS). When iterating over a directory, this lead to that error incorrectly being propagated after incrementing past the last directory entry.