Author: Dharanendiran <dharanendiran@timesys.com>
Date: Fri, 26 Sep 2025 00:32:33 +0530


---
 pppd/sys-linux.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c
index 05b7f16..5863c07 100644
--- a/pppd/sys-linux.c
+++ b/pppd/sys-linux.c
@@ -174,11 +174,16 @@
 #include <sys/locks.h>
 #endif
 
+#if (defined(__GLIBC__) && (__GLIBC__ == 2) && (__GLIBC_MINOR__ > 20) && defined(__powerpc__)) \
+ || (defined(__UCLIBC__) && !defined(__powerpc__)) \
+ || (defined(__GLIBC__) && !defined(__powerpc__))
+
 /*
  * Instead of system header file <termios.h> use local "termios_linux.h" header
  * file as it provides additional support for arbitrary baud rates via BOTHER.
  */
 #include "termios_linux.h"
+#endif
 
 #ifdef PPP_WITH_IPV6CP
 #ifndef _LINUX_IN6_H
-- 
2.34.1

