From 7c0d979be49eefef3a53a4639bc9a9e2ceb3b287 Mon Sep 17 00:00:00 2001 From: "Sergey V. Lobanov" Date: Sun, 25 Aug 2024 15:45:39 +0000 Subject: fix __WORDSIZE macro on musl 32 bit platforms This patch allows to build accel-ppp on mips32/ppc32 openwrt (musl) --- accel-pppd/session.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/accel-pppd/session.c b/accel-pppd/session.c index c01417f3..74b39475 100644 --- a/accel-pppd/session.c +++ b/accel-pppd/session.c @@ -30,6 +30,14 @@ #define SID_SOURCE_SEQ 0 #define SID_SOURCE_URANDOM 1 +#ifndef __WORDSIZE +#if defined(__GLIBC__) || defined(__UCLIBC__) +#include +#else +#include +#endif +#endif + static int conf_sid_ucase; static int conf_single_session = -1; static int conf_single_session_ignore_case; -- cgit v1.2.3