-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
legacy TIMEDWAIT declarations missing from Unified Headers #423
Comments
actually, it's duplicate of #420 |
The proper API for this isn't available until L, so expose this for API levels earlier than that. Test: make checkbuild Bug: android/ndk#420 Change-Id: I382b8f557be9530f3e13aaae353b4a6e7f9301ab
@DanAlbert did you set 'invalid' because it's duplicate? |
Yep, my mistake. |
Crap, I actually missed the list of other missing things. I'm going to get these added now. |
https://android-review.googlesource.com/c/420945/ sorry about that! |
Oh, I didn't put back the |
@DanAlbert Do you expect people to migrate their code, e.g. WebRTC to use
in event_timer_posix.cc:99? I would rather keep it the way it is today (anyway, WebRTC still ships with NDK r.11). People who will try to use autoconf may need some adaptations, but at least don't force projects that are tuned for NDK already to change: their natural path will be to stay stuck with old NDK as long as possible. |
as far as we're concerned, the sooner everyone's on the same codepath, the better. the |
The fallback behavior actually doesn't work pre-21, because we didn't have |
yeah, i was thinking of |
Test: make checkbuild Bug: android/ndk#423 Bug: https://stackoverflow.com/q/44580542/632035 Change-Id: Ibf52a969afffbfcdf6793a0bf8b0e10bbdd1f32c
This fix missed
and thus WebRTC breaks for webrtc/system_wrappers/source/event_timer_posix.cc when built with ANDROID_API < 21. |
yeah, polluting the global namespace with |
@enh, do you suggest to open a ticket for WebRTC to switch this check to |
yeah, that sounds like the right fix. |
They have chosen to define HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC, see https://chromium.googlesource.com/chromium/src/build/+/master/config/android/BUILD.gn#96 They have a bug for sdk level=20, but it's purely theoretical. |
Description
This surfaced in WebRTC compilation on r15 (see e.g. event_timer_posix.c:99).
platform headers for android-9 till android-19 define
HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC
. It is not defined in unified headers, but simply adding this with condition__ANDROID_API__ < 21
does not help; we also need to declarepthread_cond_timedwait_monotonic_np()
and her kin.Workaround:
I have added the file pthread.h high on our includes search path:
Environment Details
Not all of these will be relevant to every bug, but please provide as much
information as you can.
The text was updated successfully, but these errors were encountered: