Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

CherryPick: Use openat syscall if available #18

Merged
merged 1 commit into from
May 10, 2017

Conversation

arthurprs
Copy link

Pull request to yesterdays branch for your convenience.

Attempt to fix rust-lang/rust#41861

Some architectures like AArch64 may not have the open syscall because it
was superseded by the openat syscall, so check and use SYS_openat if
SYS_open is not available.

Additionally, Android headers for AArch64 define SYS_open to __NR_open,
even though __NR_open is undefined. Undefine SYS_open in that case so
SYS_openat is used.
@arthurprs arthurprs changed the title CherrPick: Use openat syscall if available CherryPick: Use openat syscall if available May 10, 2017
@alexcrichton alexcrichton merged commit 3288e06 into rust-lang:rust-2017-05-09 May 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants