summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hardware/LMI_ProcessorProvider.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hardware/LMI_ProcessorProvider.c b/src/hardware/LMI_ProcessorProvider.c
index 8a037ea..903e112 100644
--- a/src/hardware/LMI_ProcessorProvider.c
+++ b/src/hardware/LMI_ProcessorProvider.c
@@ -29,6 +29,16 @@
#include "lscpu.h"
#include "procfs.h"
+/**
+ * CIM schema defines Values for CIM_Processor::Family property since version
+ * 2.38.0. With older versions the LMI_Processor_Family_Enum won't be generated
+ * by konkret (in LMI_Processor.h).
+*/
+#ifndef LMI_Processor_Family_Enum
+ // CIM schema is older than 2.38.0
+ #define LMI_Processor_Family_Other 1
+#endif
+
CMPIUint16 get_family(const char *family);
CMPIUint16 get_cpustatus(const char *status);
CMPIUint16 get_enabledstate(const CMPIUint16 status);