Skip to content

Commit 8d868c8

Browse files
committed
gnu: Update struct msqid_ds for 64-bit time
1 parent 4704397 commit 8d868c8

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

src/unix/linux_like/linux/gnu/b32/arm/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,13 @@ s! {
131131
pub struct msqid_ds {
132132
pub msg_perm: ::ipc_perm,
133133
pub msg_stime: ::time_t,
134+
#[cfg(not(gnu_time64_abi))]
134135
__glibc_reserved1: ::c_ulong,
135136
pub msg_rtime: ::time_t,
137+
#[cfg(not(gnu_time64_abi))]
136138
__glibc_reserved2: ::c_ulong,
137139
pub msg_ctime: ::time_t,
140+
#[cfg(not(gnu_time64_abi))]
138141
__glibc_reserved3: ::c_ulong,
139142
__msg_cbytes: ::c_ulong,
140143
pub msg_qnum: ::msgqnum_t,

src/unix/linux_like/linux/gnu/b32/mips/mod.rs

-12
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,9 @@ s! {
121121

122122
pub struct msqid_ds {
123123
pub msg_perm: ::ipc_perm,
124-
#[cfg(target_endian = "big")]
125-
__glibc_reserved1: ::c_ulong,
126124
pub msg_stime: ::time_t,
127-
#[cfg(target_endian = "little")]
128-
__glibc_reserved1: ::c_ulong,
129-
#[cfg(target_endian = "big")]
130-
__glibc_reserved2: ::c_ulong,
131125
pub msg_rtime: ::time_t,
132-
#[cfg(target_endian = "little")]
133-
__glibc_reserved2: ::c_ulong,
134-
#[cfg(target_endian = "big")]
135-
__glibc_reserved3: ::c_ulong,
136126
pub msg_ctime: ::time_t,
137-
#[cfg(target_endian = "little")]
138-
__glibc_reserved3: ::c_ulong,
139127
__msg_cbytes: ::c_ulong,
140128
pub msg_qnum: ::msgqnum_t,
141129
pub msg_qbytes: ::msglen_t,

src/unix/linux_like/linux/gnu/b32/powerpc/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,13 @@ s! {
110110

111111
pub struct msqid_ds {
112112
pub msg_perm: ::ipc_perm,
113+
#[cfg(not(gnu_time64_abi))]
113114
__glibc_reserved1: ::c_uint,
114115
pub msg_stime: ::time_t,
116+
#[cfg(not(gnu_time64_abi))]
115117
__glibc_reserved2: ::c_uint,
116118
pub msg_rtime: ::time_t,
119+
#[cfg(not(gnu_time64_abi))]
117120
__glibc_reserved3: ::c_uint,
118121
pub msg_ctime: ::time_t,
119122
__msg_cbytes: ::c_ulong,

src/unix/linux_like/linux/gnu/b32/x86/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,13 @@ s! {
205205
pub struct msqid_ds {
206206
pub msg_perm: ::ipc_perm,
207207
pub msg_stime: ::time_t,
208+
#[cfg(not(gnu_time64_abi))]
208209
__glibc_reserved1: ::c_ulong,
209210
pub msg_rtime: ::time_t,
211+
#[cfg(not(gnu_time64_abi))]
210212
__glibc_reserved2: ::c_ulong,
211213
pub msg_ctime: ::time_t,
214+
#[cfg(not(gnu_time64_abi))]
212215
__glibc_reserved3: ::c_ulong,
213216
__msg_cbytes: ::c_ulong,
214217
pub msg_qnum: ::msgqnum_t,

0 commit comments

Comments
 (0)