diff --git a/cpyrit/_cpyrit_cpu.c b/cpyrit/_cpyrit_cpu.c index 2f0a3d4..1b97939 100644 --- a/cpyrit/_cpyrit_cpu.c +++ b/cpyrit/_cpyrit_cpu.c @@ -40,6 +40,7 @@ #include #include "cpufeatures.h" #include "_cpyrit_cpu.h" +#include #ifdef COMPILE_AESNI #include #endif @@ -2409,7 +2410,7 @@ static void pathconfig(void) #endif if (!PlatformString) - PlatformString = PyString_FromString("x86"); + PlatformString = PyString_FromString((char *) getauxval(AT_PLATFORM)); if (!prepare_pmk) prepare_pmk = prepare_pmk_openssl; if (!finalize_pmk)