File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,11 @@ cc_binary(
41
41
}),
42
42
linkopts = select ({
43
43
"//src/conditions:windows" : [],
44
- "//conditions:default" : ["-lm" ],
44
+ "//src/conditions:darwin" : ["-lm" ],
45
+ "//conditions:default" : [
46
+ "-lm" ,
47
+ "-lrt" ,
48
+ ],
45
49
}),
46
50
deps = select ({
47
51
"//src/conditions:windows" : [],
@@ -86,7 +90,16 @@ cc_binary(
86
90
"linux-sandbox-pid1.h" ,
87
91
],
88
92
}),
89
- linkopts = ["-lm" ],
93
+ linkopts = select ({
94
+ "//src/conditions:darwin" : [],
95
+ "//src/conditions:freebsd" : [],
96
+ "//src/conditions:openbsd" : [],
97
+ "//src/conditions:windows" : [],
98
+ "//conditions:default" : [
99
+ "-lm" ,
100
+ "-lrt" ,
101
+ ],
102
+ }),
90
103
deps = select ({
91
104
"//src/conditions:darwin" : [],
92
105
"//src/conditions:freebsd" : [],
Original file line number Diff line number Diff line change 15
15
#ifndef SRC_MAIN_TOOLS_LOGGING_H_
16
16
#define SRC_MAIN_TOOLS_LOGGING_H_
17
17
18
+ // See https://stackoverflow.com/a/8132440 .
19
+ #ifndef __STDC_FORMAT_MACROS
20
+ #define __STDC_FORMAT_MACROS
21
+ #endif
18
22
#include <inttypes.h>
19
23
#include <stdint.h>
20
24
#include <stdio.h>
You can’t perform that action at this time.
0 commit comments