blob: 0ac03bde50fbaa73d182f6384c96aa8b1a99634c [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 46f0aadf80d5e28f587149b6e90c3ba005971f6e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 2 Sep 2022 19:22:17 -0700
4Subject: [PATCH] configure: Include unistd.h for getpid API
5
6This fixes the check for perf events support in configure
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 configure.ac | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/configure.ac b/configure.ac
15index e4f4024..3384628 100644
16--- a/configure.ac
17+++ b/configure.ac
18@@ -119,6 +119,7 @@ if test "$kernel_may_have_perf_events_support" = "yes"; then
19 #include <asm/unistd.h>
20 #include <sys/types.h>
21 #include <string.h>
22+ #include <unistd.h>
23 ]],
24 [[struct perf_event_attr attr;
25 pid_t pid;
26--
272.37.3
28