projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ab5532
)
perf data: Add missing unistd.h header needed for pid_t
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Mon, 25 Jul 2022 21:09:08 +0000
(18:09 -0300)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Mon, 25 Jul 2022 21:10:43 +0000
(18:10 -0300)
Noticed when processing 'perf kwork' that includes util/data.h without,
by luck, having included unistd.h indirectly to get the pid_t typedef.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/data.h
patch
|
blob
|
history
diff --git
a/tools/perf/util/data.h
b/tools/perf/util/data.h
index 173132d502f57516827a5fd23fc265a745efb3d8..effcc195d7e9c0404cb6a90db236a4cf1761c6d7 100644
(file)
--- a/
tools/perf/util/data.h
+++ b/
tools/perf/util/data.h
@@
-4,6
+4,7
@@
#include <stdio.h>
#include <stdbool.h>
+#include <unistd.h>
#include <linux/types.h>
enum perf_data_mode {