Fix: introduce LTTNG_SIZE_MAX for older kernels
[lttng-modules.git] / lttng-events.c
index 95a79cf75dc10de27daf335b927043f9231bfa29..6aa994ca0925f38fd56d04c43c4937f0cf93a783 100644 (file)
@@ -46,6 +46,7 @@
 #include <wrapper/random.h>
 #include <wrapper/tracepoint.h>
 #include <wrapper/list.h>
+#include <wrapper/types.h>
 #include <lttng-kernel-version.h>
 #include <lttng-events.h>
 #include <lttng-tracer.h>
@@ -1146,7 +1147,8 @@ static
 int lttng_match_enabler_star_glob(const char *desc_name,
                const char *pattern)
 {
-       if (!strutils_star_glob_match(pattern, SIZE_MAX, desc_name, SIZE_MAX))
+       if (!strutils_star_glob_match(pattern, LTTNG_SIZE_MAX,
+                       desc_name, LTTNG_SIZE_MAX))
                return 0;
        return 1;
 }
This page took 0.023768 seconds and 4 git commands to generate.