Skip to content
Snippets Groups Projects
Commit ae65df55 authored by bors's avatar bors
Browse files

Auto merge of #1968 - de-vri-es:accept4-old-android, r=JohnTitor

Implement accept4 on Android as raw syscall.

This PR implements `accept4()` on Android using `syscall()` instead of the `accept4()` wrapper.

This is done because the `accept4()` wrapper wasn't added to Androids `libc` until version 5.0 (API level 21). By using `syscall` directly, `accept4` will also work on older  Android versions.

The kernel itself has supported it since Linux 2.6.28, which was shipped with stock Android since version 1.6 already: https://en.wikipedia.org/wiki/Android_version_history#Android_1.6_Donut_(API_4)

At the moment, the CI for the rust repo still uses API level 14. Although I also opened a PR to bump that too: https://github.com/rust-lang/rust/pull/78601. However, it might make sense to keep the old API level in CI if this is merged.
parents 338eebb3 36affa26
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment