diff options
author | hwspeedy <ns@bigbear.dk> | 2024-02-16 01:17:31 +0100 |
---|---|---|
committer | hwspeedy <ns@bigbear.dk> | 2024-02-16 01:17:31 +0100 |
commit | abff8be13bebf2e33ad2e7fe8d97c8b59b48ef6f (patch) | |
tree | bcf3612b4ad79735a2e4016dafdbd0128ff58cbf /modules/devices/x86 | |
parent | c362d03622401c6ea39bae828b7e24cb1f75a6bf (diff) |
FIX Disable cpuflags for very old JSON <0.20.0 - FIX for ol6/c6/rh6
Diffstat (limited to 'modules/devices/x86')
-rw-r--r-- | modules/devices/x86/x86_data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/devices/x86/x86_data.c b/modules/devices/x86/x86_data.c index f56e8668..a2f8d7ca 100644 --- a/modules/devices/x86/x86_data.c +++ b/modules/devices/x86/x86_data.c @@ -330,7 +330,7 @@ void cpuflags_x86_init(void) gchar *flag_json = g_build_filename(g_get_user_config_dir(), "hardinfo2", "cpuflags.json", NULL); gboolean use_builtin_table = TRUE; - +#if JSON_CHECK_VERSION(0,20,0) if (!g_file_test(flag_json, G_FILE_TEST_EXISTS)) goto use_builtin_table; @@ -357,6 +357,7 @@ void cpuflags_x86_init(void) use_builtin_table_with_json: g_object_unref(parser); use_builtin_table: +#endif g_free(flag_json); if (use_builtin_table) |