Skip to content

v0.7 statx compile fail with kernels before 4.10 #106

@zenfey

Description

@zenfey

Hi, PR #95 will include <linux/stat.h> to deal with earlier systems with undefined STATX_TYPE, it seems old versions kernel headers before 4.10 do not contain definition of STATX in this header file.

On my centos 7 machine with kernel version 3.10 LTS, the compile error occured on line 442 of uring_stubs.c, prompting "invalid application of 'sizeof' to incomplete type 'struct statx'".

Elrepo is an option for me to update system kernel to mainline version (>5.1) so to support syscalls of statx and io_uring at all on centos7, but I'm afraid this may get things into totally mess.

Could some additional macros be added so as to bypass statx compilation, thx : )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions