blob: d775f984e9691c390d28e9381b949cfd5675e6bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Add missing <new> includes required for std::nothrow and
# std::set_new_handler.
--- a/src/cpu/abstract_cpu.cpp
+++ b/src/cpu/abstract_cpu.cpp
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
+#include <new>
#include "cpu.h"
#include "../lib.h"
--- a/src/devices/devfreq.cpp
+++ b/src/devices/devfreq.cpp
@@ -30,6 +30,7 @@
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
+#include <new>
#include "device.h"
#include "devfreq.h"
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -40,6 +40,7 @@
#include <sys/resource.h>
#include <limits.h>
#include <pthread.h>
+#include <new>
#include "cpu/cpu.h"
#include "process/process.h"
--- a/src/measurement/measurement.cpp
+++ b/src/measurement/measurement.cpp
@@ -37,6 +37,7 @@
#include <fstream>
#include <unistd.h>
#include <time.h>
+#include <new>
double min_power = 50000.0;
--- a/src/tuning/ethernet.cpp
+++ b/src/tuning/ethernet.cpp
@@ -33,6 +33,7 @@
#include <utility>
#include <iostream>
#include <fstream>
+#include <new>
#include <sys/socket.h>
#include <errno.h>
#include <linux/types.h>
|