dhcpcd-discuss

[PATCH] Fix build on powerpc

Mikhail Efremov

Tue Dec 08 08:01:53 2020

On powerpc struct termios must be defined for TCGETS macro.
---
 src/privsep-linux.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/privsep-linux.c b/src/privsep-linux.c
index e588ecd7..b664f013 100644
--- a/src/privsep-linux.c
+++ b/src/privsep-linux.c
@@ -30,6 +30,11 @@
 #include <sys/prctl.h>
 #include <sys/syscall.h>
 
+/* For TCGETS on powerpc */
+#if defined(__powerpc64__) || defined(__powerpc__)
+#include <sys/termios.h>
+#endif
+
 #include <linux/audit.h>
 #include <linux/filter.h>
 #include <linux/seccomp.h>
-- 
2.25.4


Follow-Ups:
Re: [PATCH] Fix build on powerpcRoy Marples
Re: [PATCH] Fix build on powerpcMikhail Efremov
Archive administrator: postmaster@marples.name