@@ -3044,6 +3044,11 @@ fn test_linux(target: &str) {
3044
3044
// For internal use only, to define architecture specific ioctl constants with a libc specific type.
3045
3045
"Ioctl" => true ,
3046
3046
3047
+ // FIXME: requires >= 5.4.1 kernel headers
3048
+ "pgn_t" if musl => true ,
3049
+ "priority_t" if musl => true ,
3050
+ "name_t" if musl => true ,
3051
+
3047
3052
_ => false ,
3048
3053
}
3049
3054
} ) ;
@@ -3107,9 +3112,6 @@ fn test_linux(target: &str) {
3107
3112
3108
3113
// FIXME: requires >= 5.4.1 kernel headers
3109
3114
"j1939_filter" if musl => true ,
3110
- "pgn_t" if musl => true ,
3111
- "priority_t" if musl => true ,
3112
- "name_t" if musl => true ,
3113
3115
3114
3116
_ => false ,
3115
3117
}
@@ -3145,6 +3147,12 @@ fn test_linux(target: &str) {
3145
3147
|| name. starts_with ( "TCP_" )
3146
3148
|| name. starts_with ( "UINPUT_" )
3147
3149
|| name. starts_with ( "VMADDR_" )
3150
+ // FIXME: Requires >= 5.4.1 kernel headers
3151
+ || name. starts_with ( "J1939" )
3152
+ // FIXME: Requires >= 5.4.1 kernel headers
3153
+ || name. starts_with ( "SO_J1939" )
3154
+ // FIXME: Requires >= 5.4.1 kernel headers
3155
+ || name. starts_with ( "SCM_J1939" )
3148
3156
{
3149
3157
return true ;
3150
3158
}
@@ -3241,42 +3249,6 @@ fn test_linux(target: &str) {
3241
3249
| "CAN_RAW_FILTER_MAX"
3242
3250
| "CAN_NPROTO" => true ,
3243
3251
3244
- // FIXME: Requires >= 5.4.1 kernel headers
3245
- | "J1939_FILTER_MAX"
3246
- | "J1939_MAX_UNICAST_ADDR"
3247
- | "J1939_IDLE_ADDR"
3248
- | "J1939_NO_ADDR"
3249
- | "J1939_NO_NAME"
3250
- | "J1939_PGN_REQUEST"
3251
- | "J1939_PGN_ADDRESS_CLAIMED"
3252
- | "J1939_PGN_ADDRESS_COMMANDED"
3253
- | "J1939_PGN_PDU1_MAX"
3254
- | "J1939_PGN_MAX"
3255
- | "J1939_NO_PGN"
3256
- | "SOL_CAN_J1939"
3257
- | "SO_J1939_FILTER"
3258
- | "SO_J1939_PROMISC"
3259
- | "SO_J1939_SEND_PRIO"
3260
- | "SO_J1939_ERRQUEUE"
3261
- | "SCM_J1939_DEST_ADDR"
3262
- | "SCM_J1939_DEST_NAME"
3263
- | "SCM_J1939_PRIO"
3264
- | "SCM_J1939_ERRQUEUE"
3265
- | "J1939_NLA_PAD"
3266
- | "J1939_NLA_BYTES_ACKED"
3267
- | "J1939_NLA_TOTAL_SIZE"
3268
- | "J1939_NLA_PGN"
3269
- | "J1939_NLA_SRC_NAME"
3270
- | "J1939_NLA_DEST_NAME"
3271
- | "J1939_NLA_SRC_ADDR"
3272
- | "J1939_NLA_DEST_ADDR"
3273
- | "J1939_EE_INFO_NONE"
3274
- | "J1939_EE_INFO_TX_ABORT"
3275
- | "J1939_EE_INFO_RX_RTS"
3276
- | "J1939_EE_INFO_RX_DPO"
3277
- | "J1939_EE_INFO_RX_ABORT"
3278
- if musl => true ,
3279
-
3280
3252
// FIXME: Requires recent kernel headers (5.15)
3281
3253
| "J1939_NLA_TOTAL_SIZE"
3282
3254
| "J1939_NLA_PGN"
@@ -3286,7 +3258,8 @@ fn test_linux(target: &str) {
3286
3258
| "J1939_NLA_DEST_ADDR"
3287
3259
| "J1939_EE_INFO_RX_RTS"
3288
3260
| "J1939_EE_INFO_RX_DPO"
3289
- | "J1939_EE_INFO_RX_ABORT" => true ,
3261
+ | "J1939_EE_INFO_RX_ABORT"
3262
+ | "SOL_CAN_J1939" => true ,
3290
3263
3291
3264
// FIXME: Requires recent kernel headers (5.8):
3292
3265
"STATX_MNT_ID" => true ,
0 commit comments