diff options
author | Harrison Metzger <harrisonmetz@gmail.com> | 2020-01-11 22:59:40 +0100 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2020-01-11 15:48:13 -0800 |
commit | 7ef655935a06b42a360e8abc01bd396d82c7e9b2 (patch) | |
tree | 8b21a28450d4cb2baff2069ac9d1892e5c1e6e8f | |
parent | 9a54fe97cb7f8b3c781f42f15b87060655ccce45 (diff) | |
download | ssh2-rs-7ef655935a06b42a360e8abc01bd396d82c7e9b2.zip |
fix: define libssh2_socket_t using pointer width for aarch64 windows
-rw-r--r-- | libssh2-sys/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh2-sys/lib.rs b/libssh2-sys/lib.rs index ed10da5..0017781 100644 --- a/libssh2-sys/lib.rs +++ b/libssh2-sys/lib.rs @@ -299,9 +299,9 @@ pub struct LIBSSH2_USERAUTH_KBDINT_RESPONSE { #[cfg(unix)] pub type libssh2_socket_t = c_int; -#[cfg(all(windows, target_arch = "x86"))] +#[cfg(all(windows, target_pointer_width = "32"))] pub type libssh2_socket_t = u32; -#[cfg(all(windows, target_arch = "x86_64"))] +#[cfg(all(windows, target_pointer_width = "64"))] pub type libssh2_socket_t = u64; extern "C" { |