diff options
author | Sergey V. Lobanov <sergey@lobanov.in> | 2024-08-25 15:45:39 +0000 |
---|---|---|
committer | Sergey V. Lobanov <sergey@lobanov.in> | 2024-08-25 16:24:29 +0000 |
commit | 7c0d979be49eefef3a53a4639bc9a9e2ceb3b287 (patch) | |
tree | 5ddd3fab0835c2ad4b291c8225f36c427b67e1f8 | |
parent | 2d38a77c008524e293e0dc4b1e46c9093e7a9457 (diff) | |
download | accel-ppp-7c0d979be49eefef3a53a4639bc9a9e2ceb3b287.tar.gz accel-ppp-7c0d979be49eefef3a53a4639bc9a9e2ceb3b287.zip |
fix __WORDSIZE macro on musl 32 bit platforms
This patch allows to build accel-ppp on mips32/ppc32 openwrt (musl)
-rw-r--r-- | accel-pppd/session.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <bits/wordsize.h> +#else +#include <bits/reg.h> +#endif +#endif + static int conf_sid_ucase; static int conf_single_session = -1; static int conf_single_session_ignore_case; |