summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/dhcpcd/files/0001-Linux-Fix-privsep-build-by-including-sys-termios.h-f.patch
blob: 095e3eb409a70da9adae1ba69aff9beb6ea92b2f (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
From e7c22336461ee345a5668eed6158e935cd4cdf1a Mon Sep 17 00:00:00 2001
From: Mikhail Efremov <sem@altlinux.org>
Date: Tue, 8 Dec 2020 16:15:28 +0000
Subject: [PATCH] Linux: Fix privsep build by including sys/termios.h for all
 platforms

Upstream-Status: Backport
[https://roy.marples.name/cgit/dhcpcd.git/commit/?id=e7c22336461ee345a5668eed6158e935cd4cdf1a]

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 src/privsep-linux.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/privsep-linux.c b/src/privsep-linux.c
index e588ecd7..1fbe97fa 100644
--- a/src/privsep-linux.c
+++ b/src/privsep-linux.c
@@ -29,6 +29,7 @@
 #include <sys/ioctl.h>
 #include <sys/prctl.h>
 #include <sys/syscall.h>
+#include <sys/termios.h>	/* For TCGETS */
 
 #include <linux/audit.h>
 #include <linux/filter.h>
-- 
2.25.1