We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1719b78 commit c890644Copy full SHA for c890644
src/errno.rs
@@ -35,12 +35,18 @@ unsafe fn errno_location() -> *mut c_int {
35
__errno()
36
}
37
38
-#[cfg(any(target_os = "linux", target_os = "android"))]
+#[cfg(target_os = "linux")]
39
unsafe fn errno_location() -> *mut c_int {
40
extern { fn __errno_location() -> *mut c_int; }
41
__errno_location()
42
43
44
+#[cfg(target_os = "android")]
45
+unsafe fn errno_location() -> *mut c_int {
46
+ extern { fn __errno() -> *mut c_int; }
47
+ __errno()
48
+}
49
+
50
/// Sets the platform-specific errno to no-error
51
unsafe fn clear() -> () {
52
*errno_location() = 0;
0 commit comments