@@ -3364,15 +3364,15 @@ static PyMemberDef pystatx_result_members[] = {
33643364STATX_GET_UINT (st_uid , stx_uid , STATX_UID )
33653365STATX_GET_UINT (st_gid , stx_gid , STATX_GID )
33663366STATX_GET_UINT (st_nlink , stx_nlink , STATX_NLINK )
3367- #ifdef STATX_DIOALIGN
3367+ #ifdef HAVE_STRUCT_STATX_STX_DIO_MEM_ALIGN
33683368STATX_GET_UINT (stx_dio_mem_align , stx_dio_mem_align , STATX_DIOALIGN )
33693369STATX_GET_UINT (stx_dio_offset_align , stx_dio_offset_align , STATX_DIOALIGN )
33703370#endif
3371- #ifdef STATX_DIO_READ_ALIGN
3371+ #ifdef HAVE_STRUCT_STATX_STX_DIO_READ_OFFSET_ALIGN
33723372STATX_GET_UINT (stx_dio_read_offset_align , stx_dio_read_offset_align ,
33733373 STATX_DIO_READ_ALIGN )
33743374#endif
3375- #ifdef STATX_WRITE_ATOMIC
3375+ #ifdef HAVE_STRUCT_STATX_STX_ATOMIC_WRITE_UNIT_MIN
33763376STATX_GET_UINT (stx_atomic_write_unit_min , stx_atomic_write_unit_min ,
33773377 STATX_WRITE_ATOMIC )
33783378STATX_GET_UINT (stx_atomic_write_unit_max , stx_atomic_write_unit_max ,
@@ -3401,10 +3401,10 @@ STATX_GET_UINT(stx_atomic_write_unit_max_opt, stx_atomic_write_unit_max_opt,
34013401STATX_GET_ULONGLONG (st_blocks , stx_blocks , STATX_BLOCKS )
34023402STATX_GET_ULONGLONG (st_ino , stx_ino , STATX_INO )
34033403STATX_GET_ULONGLONG (st_size , stx_size , STATX_SIZE )
3404- #ifdef STATX_MNT_ID
3404+ #ifdef HAVE_STRUCT_STATX_STX_MNT_ID
34053405STATX_GET_ULONGLONG (stx_mnt_id , stx_mnt_id , STATX_MNT_ID )
34063406#endif
3407- #ifdef STATX_SUBVOL
3407+ #ifdef HAVE_STRUCT_STATX_STX_SUBVOL
34083408STATX_GET_ULONGLONG (stx_subvol , stx_subvol , STATX_SUBVOL )
34093409#endif
34103410
@@ -3463,25 +3463,25 @@ static PyGetSetDef pystatx_result_getset[] = {
34633463 G (st_ctime_ns , "time of last change in nanoseconds" ),
34643464 G (st_mtime , "time of last modification" ),
34653465 G (st_mtime_ns , "time of last modification in nanoseconds" ),
3466- #ifdef STATX_MNT_ID
3466+ #ifdef HAVE_STRUCT_STATX_STX_MNT_ID
34673467 G (stx_mnt_id , "mount ID" ),
34683468#endif
3469- #ifdef STATX_DIOALIGN
3469+ #ifdef HAVE_STRUCT_STATX_STX_DIO_MEM_ALIGN
34703470 G (stx_dio_mem_align , "direct I/O memory buffer alignment" ),
34713471 G (stx_dio_offset_align , "direct I/O file offset alignment" ),
34723472#endif
3473- #ifdef STATX_SUBVOL
3473+ #ifdef HAVE_STRUCT_STATX_STX_SUBVOL
34743474 G (stx_subvol , "subvolume ID" ),
34753475#endif
3476- #ifdef STATX_WRITE_ATOMIC
3476+ #ifdef HAVE_STRUCT_STATX_STX_ATOMIC_WRITE_UNIT_MIN
34773477 G (stx_atomic_write_unit_min ,
34783478 "minimum size for direct I/O with torn-write protection" ),
34793479 G (stx_atomic_write_unit_max ,
34803480 "maximum size for direct I/O with torn-write protection" ),
34813481 G (stx_atomic_write_segments_max ,
34823482 "maximum iovecs for direct I/O with torn-write protection" ),
34833483#endif
3484- #ifdef STATX_DIO_READ_ALIGN
3484+ #ifdef HAVE_STRUCT_STATX_STX_DIO_READ_OFFSET_ALIGN
34853485 G (stx_dio_read_offset_align , "direct I/O file offset alignment for reads" ),
34863486#endif
34873487#ifdef HAVE_STRUCT_STATX_STX_ATOMIC_WRITE_UNIT_MAX_OPT
0 commit comments