Skip to content

Commit f0d5edb

Browse files
committed
Also guard G
1 parent e879800 commit f0d5edb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/posixmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3463,14 +3463,14 @@ 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 HAVE_STRUCT_STATX_STX_MNT_ID
3466+
#if defined(STATX_MNT_ID) && defined(HAVE_STRUCT_STATX_STX_MNT_ID)
34673467
G(stx_mnt_id, "mount ID"),
34683468
#endif
34693469
#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 HAVE_STRUCT_STATX_STX_SUBVOL
3473+
#if defined(STATX_SUBVOL) && defined(HAVE_STRUCT_STATX_STX_SUBVOL)
34743474
G(stx_subvol, "subvolume ID"),
34753475
#endif
34763476
#ifdef HAVE_STRUCT_STATX_STX_ATOMIC_WRITE_UNIT_MIN

0 commit comments

Comments
 (0)