@@ -3396,10 +3396,10 @@ STATX_GET_UINT(stx_atomic_write_unit_max_opt, STATX_WRITE_ATOMIC)
33963396STATX_GET_ULONGLONG (stx_blocks , STATX_BLOCKS )
33973397STATX_GET_ULONGLONG (stx_ino , STATX_INO )
33983398STATX_GET_ULONGLONG (stx_size , STATX_SIZE )
3399- #ifdef HAVE_STRUCT_STATX_STX_MNT_ID
3399+ #if defined( STATX_MNT_ID ) && defined( HAVE_STRUCT_STATX_STX_MNT_ID )
34003400STATX_GET_ULONGLONG (stx_mnt_id , STATX_MNT_ID )
34013401#endif
3402- #ifdef HAVE_STRUCT_STATX_STX_SUBVOL
3402+ #if defined( STATX_SUBVOL ) && defined( HAVE_STRUCT_STATX_STX_SUBVOL )
34033403STATX_GET_ULONGLONG (stx_subvol , STATX_SUBVOL )
34043404#endif
34053405
@@ -3458,14 +3458,14 @@ static PyGetSetDef pystatx_result_getset[] = {
34583458 G (stx_ctime_ns , "time of last change in nanoseconds" ),
34593459 G (stx_mtime , "time of last modification" ),
34603460 G (stx_mtime_ns , "time of last modification in nanoseconds" ),
3461- #ifdef HAVE_STRUCT_STATX_STX_MNT_ID
3461+ #if defined( STATX_MNT_ID ) && defined ( HAVE_STRUCT_STATX_STX_MNT_ID )
34623462 G (stx_mnt_id , "mount ID" ),
34633463#endif
34643464#ifdef HAVE_STRUCT_STATX_STX_DIO_MEM_ALIGN
34653465 G (stx_dio_mem_align , "direct I/O memory buffer alignment" ),
34663466 G (stx_dio_offset_align , "direct I/O file offset alignment" ),
34673467#endif
3468- #ifdef HAVE_STRUCT_STATX_STX_SUBVOL
3468+ #if defined( STATX_SUBVOL ) && defined ( HAVE_STRUCT_STATX_STX_SUBVOL )
34693469 G (stx_subvol , "subvolume ID" ),
34703470#endif
34713471#ifdef HAVE_STRUCT_STATX_STX_ATOMIC_WRITE_UNIT_MIN
0 commit comments