X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Fwrapper%2Fgenhd.h;h=4a59b68e9c3b0f4785b9e7d7b00dbe0bc5d37d85;hb=07aafa15e9c655db53f575f7b9c8ea30ec7f6e26;hp=3c6dbcbe41a386e6c0bfa593c6c3bf479009f399;hpb=a88ee460b93c67ca756bd91ee9a8660813f65bd8;p=lttng-modules.git diff --git a/include/wrapper/genhd.h b/include/wrapper/genhd.h index 3c6dbcbe..4a59b68e 100644 --- a/include/wrapper/genhd.h +++ b/include/wrapper/genhd.h @@ -12,7 +12,11 @@ #ifndef _LTTNG_WRAPPER_GENHD_H #define _LTTNG_WRAPPER_GENHD_H +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0)) +#include +#else #include +#endif #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) #define LTTNG_GENHD_FL_HIDDEN GENHD_FL_HIDDEN