summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco A L Barbosa <malbarbo@gmail.com>2017-10-18 12:01:57 -0200
committerMarco A L Barbosa <malbarbo@gmail.com>2017-10-18 21:07:36 -0200
commitc3408c10e34309064e3081f050b5e4e51b8f84c8 (patch)
treecb5a7ba57b6e32020acd23f6758570426feb6613
parentbbc2cfa0969caea273c2ae018b2f08418078ed82 (diff)
downloadrust-libc-c3408c10e34309064e3081f050b5e4e51b8f84c8.tar.gz
Fix utmpx.ut_session for linux x32
-rw-r--r--src/unix/notbsd/linux/other/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs
index 7a58c181b1..6e33ab38b7 100644
--- a/src/unix/notbsd/linux/other/mod.rs
+++ b/src/unix/notbsd/linux/other/mod.rs
@@ -44,7 +44,7 @@ s! {
#[cfg(any(target_arch = "aarch64",
target_arch = "sparc64",
- target_pointer_width = "32"))]
+ all(target_pointer_width = "32", not(target_arch = "x86_64"))))]
pub ut_session: ::c_long,
#[cfg(any(target_arch = "aarch64",
target_arch = "sparc64",
@@ -53,7 +53,7 @@ s! {
#[cfg(not(any(target_arch = "aarch64",
target_arch = "sparc64",
- target_pointer_width = "32")))]
+ all(target_pointer_width = "32", not(target_arch = "x86_64")))))]
pub ut_session: ::int32_t,
#[cfg(not(any(target_arch = "aarch64",
target_arch = "sparc64",