Skip to content

Commit f6178d0

Browse files
authored
Merge pull request #66 from hvdijk/x32
Fix syscall definitions for x86_64-unknown-linux-gnux32.
2 parents 880c6b2 + 44e1eb7 commit f6178d0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/nr.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,16 @@ pub const CAPGET: i32 = 184;
6161
#[cfg(target_arch = "x86")]
6262
pub const CAPSET: i32 = 185;
6363

64-
#[cfg(target_arch = "x86_64")]
64+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
6565
pub const CAPGET: i64 = 125;
66-
#[cfg(target_arch = "x86_64")]
66+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
6767
pub const CAPSET: i64 = 126;
6868

69+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
70+
pub const CAPGET: i32 = 0x40000000 + 125;
71+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
72+
pub const CAPSET: i32 = 0x40000000 + 126;
73+
6974
#[cfg(target_arch = "aarch64")]
7075
pub const CAPGET: i64 = 90;
7176
#[cfg(target_arch = "aarch64")]

0 commit comments

Comments
 (0)