> +static bool read_cpuinfo(union cpuinfo *cpuinfo) > +{ > + FILE *cpu_file = fopen("/proc/cpuinfo", "r"); > + if (!cpu_file) > + return false; This works only on Linux. Wouldn't it be possible to identify Ice Lake by PCI ID of the root bridge instead? Have a nice fortnight -- Martin `MJ' Mareš <mj@xxxxxx> http://mj.ucw.cz/ United Computer Wizards, Prague, Czech Republic, Europe, Earth, Universe