Fix SIZEOF_LONG default for 32-bit Linux kernel modules

This commit is contained in:
Lealem Amedie
2026-02-18 12:23:29 -07:00
parent 2971c7024b
commit 4e6d9ea02b
+10 -2
View File
@@ -3775,10 +3775,18 @@ extern void uITRON4_free(void *p) ;
#define WOLFSSL_NO_GETPID
#endif /* WOLFSSL_NO_GETPID */
#ifndef SIZEOF_LONG
#define SIZEOF_LONG 8
#ifdef __SIZEOF_LONG__
#define SIZEOF_LONG __SIZEOF_LONG__
#else
#define SIZEOF_LONG 8
#endif
#endif
#ifndef SIZEOF_LONG_LONG
#define SIZEOF_LONG_LONG 8
#ifdef __SIZEOF_LONG_LONG__
#define SIZEOF_LONG_LONG __SIZEOF_LONG_LONG__
#else
#define SIZEOF_LONG_LONG 8
#endif
#endif
#define CHAR_BIT 8
#ifndef WOLFSSL_SP_DIV_64