Modify configure to check availability of nvme_uring_cmd, but only when the target OS is Linux. This way in the follow up patch we can define the missing structure to prevent compilation errors. Signed-off-by: Ankit Kumar <ankit.kumar@xxxxxxxxxxx> --- configure | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configure b/configure index 95b60bb7..7e855e0e 100755 --- a/configure +++ b/configure @@ -2587,6 +2587,27 @@ if test "$libzbc" != "no" ; then fi print_config "libzbc engine" "$libzbc" +if test "$targetos" = "Linux" ; then +########################################## +# Check NVME_URING_CMD support +cat > $TMPC << EOF +#include <linux/nvme_ioctl.h> +int main(void) +{ + struct nvme_uring_cmd *cmd; + + return sizeof(struct nvme_uring_cmd); +} +EOF +if compile_prog "" "" "nvme uring cmd"; then + output_sym "CONFIG_NVME_URING_CMD" + nvme_uring_cmd="yes" +else + nvme_uring_cmd="no" +fi +print_config "NVMe uring command support" "$nvme_uring_cmd" +fi + ########################################## # Check if we have xnvme if test "$xnvme" != "yes" ; then -- 2.17.1