Skip to content

Commit 91a33d8

Browse files
committed
uclibc/mips: fixed SA_* mismatched types
Signed-off-by: Xiaobo Liu <[email protected]>
1 parent 9cc7781 commit 91a33d8

File tree

1 file changed

+14
-7
lines changed
  • src/unix/linux_like/linux/uclibc/mips

1 file changed

+14
-7
lines changed

src/unix/linux_like/linux/uclibc/mips/mod.rs

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ pub const ECOMM: ::c_int = 70;
2323
pub const EPROTO: ::c_int = 71;
2424
pub const EDOTDOT: ::c_int = 73;
2525

26-
pub const SA_NODEFER: ::c_int = 0x40000000;
27-
pub const SA_RESETHAND: ::c_int = 0x80000000;
28-
pub const SA_RESTART: ::c_int = 0x10000000;
29-
pub const SA_NOCLDSTOP: ::c_int = 0x00000001;
26+
#[deprecated(since = "0.2.143", note = "Use c_ulong instead.")]
27+
pub const SA_NODEFER: ::c_ulong = 0x40000000;
28+
#[deprecated(since = "0.2.143", note = "Use c_ulong instead.")]
29+
pub const SA_RESETHAND: ::c_ulong = 0x80000000;
30+
#[deprecated(since = "0.2.143", note = "Use c_ulong instead.")]
31+
pub const SA_RESTART: ::c_ulong = 0x10000000;
32+
#[deprecated(since = "0.2.143", note = "Use c_ulong instead.")]
33+
pub const SA_NOCLDSTOP: ::c_ulong = 0x00000001;
3034

3135
pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
3236

@@ -158,9 +162,12 @@ pub const SOCK_STREAM: ::c_int = 2;
158162
pub const SOCK_DGRAM: ::c_int = 1;
159163
pub const SOCK_SEQPACKET: ::c_int = 5;
160164

161-
pub const SA_ONSTACK: ::c_uint = 0x08000000;
162-
pub const SA_SIGINFO: ::c_uint = 0x00000008;
163-
pub const SA_NOCLDWAIT: ::c_int = 0x00010000;
165+
#[deprecated(since = "0.2.143", note = "Use c_ulong instead.")]
166+
pub const SA_ONSTACK: ::c_ulong = 0x08000000;
167+
#[deprecated(since = "0.2.143", note = "Use c_ulong instead.")]
168+
pub const SA_SIGINFO: ::c_ulong = 0x00000008;
169+
#[deprecated(since = "0.2.143", note = "Use c_ulong instead.")]
170+
pub const SA_NOCLDWAIT: ::c_ulong = 0x00010000;
164171

165172
pub const SIGCHLD: ::c_int = 18;
166173
pub const SIGBUS: ::c_int = 10;

0 commit comments

Comments
 (0)