Skip to content

Commit

Permalink
intel_cpus.cpp: Change open parameter to const char *
Browse files Browse the repository at this point in the history
ifstream::open takes std::string starting with C++11, not before.

This fixes compilation with uClibc++ and potentially other older
libraries

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb authored and nswamina committed Jul 2, 2019
1 parent f51d34b commit 7966ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpu/intel_cpus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int is_supported_intel_cpu(int model, int cpu)

int is_intel_pstate_driver_loaded()
{
const string filename("/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver");
const char *filename = "/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver";
const string intel_pstate("intel_pstate");
char line[32] = { '\0' };
ifstream file;
Expand Down

0 comments on commit 7966ac8

Please sign in to comment.