aboutsummaryrefslogtreecommitdiff
path: root/patches/std.diff
blob: b6cf7ddb172c196c54084bd10f25e4e9c48bd0f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/lib.rs b/src/lib.rs
index 5ee0f2c..9de75bc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -235,6 +235,10 @@
 //! [good cryptographic hygiene]: https://github.com/veorq/cryptocoding#clean-memory-of-secret-data
 //! [`Ordering::SeqCst`]: core::sync::atomic::Ordering::SeqCst
 
+/// Local Android change: Use std to allow building as a dylib.
+#[cfg(android_dylib)]
+extern crate std;
+
 #[cfg(feature = "alloc")]
 extern crate alloc;