@@ -676,13 +676,6 @@ s! {
676676 pub rsv: [ :: c_uint; 2 ] ,
677677 }
678678
679- pub struct ptp_perout_request {
680- pub anonymous_1: __c_anonymous_ptp_perout_request_1,
681- pub period: ptp_clock_time,
682- pub index: :: c_uint,
683- pub flags: :: c_uint,
684- pub anonymous_2: __c_anonymous_ptp_perout_request_2,
685- }
686679
687680 pub struct ptp_sys_offset {
688681 pub n_samples: :: c_uint,
@@ -958,18 +951,6 @@ s_no_extra_traits! {
958951 pub sched_period: :: __u64,
959952 }
960953
961- // linux/ptp_clock.h
962- #[ cfg( libc_union) ]
963- pub union __c_anonymous_ptp_perout_request_1 {
964- pub start: ptp_clock_time,
965- pub phase: ptp_clock_time,
966- }
967-
968- #[ cfg( libc_union) ]
969- pub union __c_anonymous_ptp_perout_request_2 {
970- pub on: ptp_clock_time,
971- pub rsv: [ :: c_uint; 4 ] ,
972- }
973954}
974955
975956s_no_extra_traits ! {
@@ -997,6 +978,35 @@ cfg_if! {
997978 pub can_ifindex: :: c_int,
998979 pub can_addr: __c_anonymous_sockaddr_can_can_addr,
999980 }
981+
982+ }
983+ }
984+ }
985+
986+ cfg_if ! {
987+ if #[ cfg( libc_union) ] {
988+ s_no_extra_traits! {
989+ // linux/ptp_clock.h
990+ #[ allow( missing_debug_implementations) ]
991+ pub union __c_anonymous_ptp_perout_request_1 {
992+ pub start: ptp_clock_time,
993+ pub phase: ptp_clock_time,
994+ }
995+
996+ #[ allow( missing_debug_implementations) ]
997+ pub union __c_anonymous_ptp_perout_request_2 {
998+ pub on: ptp_clock_time,
999+ pub rsv: [ :: c_uint; 4 ] ,
1000+ }
1001+
1002+ #[ allow( missing_debug_implementations) ]
1003+ pub struct ptp_perout_request {
1004+ pub anonymous_1: __c_anonymous_ptp_perout_request_1,
1005+ pub period: ptp_clock_time,
1006+ pub index: :: c_uint,
1007+ pub flags: :: c_uint,
1008+ pub anonymous_2: __c_anonymous_ptp_perout_request_2,
1009+ }
10001010 }
10011011 }
10021012}
0 commit comments