File tree 2 files changed +20
-17
lines changed
src/unix/linux_like/emscripten
2 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -2844,6 +2844,8 @@ fn test_emscripten(target: &str) {
2844
2844
} ) ;
2845
2845
2846
2846
cfg. skip_field ( move |struct_, field| {
2847
+ // _sigev_un is an anonymous union
2848
+ ( struct_ == "sigevent" && field == "_sigev_un" ) ||
2847
2849
// this is actually a union on linux, so we can't represent it well and
2848
2850
// just insert some padding.
2849
2851
// FIXME: is this necessary?
Original file line number Diff line number Diff line change @@ -171,23 +171,6 @@ s! {
171
171
pub sem_flg: :: c_short,
172
172
}
173
173
174
- pub struct aiocb {
175
- pub aio_fildes: :: c_int,
176
- pub aio_lio_opcode: :: c_int,
177
- pub aio_reqprio: :: c_int,
178
- pub aio_buf: * mut :: c_void,
179
- pub aio_nbytes: :: size_t,
180
- pub aio_sigevent: :: sigevent,
181
- __td: * mut :: c_void,
182
- __lock: [ :: c_int; 2 ] ,
183
- __err: :: c_int,
184
- __ret: :: ssize_t,
185
- pub aio_offset: off_t,
186
- __next: * mut :: c_void,
187
- __prev: * mut :: c_void,
188
- __dummy4: [ :: c_char; 24 ] ,
189
- }
190
-
191
174
pub struct sigaction {
192
175
pub sa_sigaction: :: sighandler_t,
193
176
pub sa_mask: :: sigset_t,
@@ -351,6 +334,24 @@ s! {
351
334
}
352
335
353
336
s_no_extra_traits ! {
337
+ #[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
338
+ pub struct aiocb {
339
+ pub aio_fildes: :: c_int,
340
+ pub aio_lio_opcode: :: c_int,
341
+ pub aio_reqprio: :: c_int,
342
+ pub aio_buf: * mut :: c_void,
343
+ pub aio_nbytes: :: size_t,
344
+ pub aio_sigevent: :: sigevent,
345
+ __td: * mut :: c_void,
346
+ __lock: [ :: c_int; 2 ] ,
347
+ __err: :: c_int,
348
+ __ret: :: ssize_t,
349
+ pub aio_offset: off_t,
350
+ __next: * mut :: c_void,
351
+ __prev: * mut :: c_void,
352
+ __dummy4: [ :: c_char; 24 ] ,
353
+ }
354
+
354
355
pub struct dirent {
355
356
pub d_ino: :: ino_t,
356
357
pub d_off: :: off_t,
You can’t perform that action at this time.
0 commit comments