From: Richard Levitte Date: Thu, 2 Sep 2021 11:10:33 +0000 (+0200) Subject: VMS: Compensate for x86_64 cross compiler type incompatibility X-Git-Tag: openssl-3.0.0~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ef526ef421febe50a105bb140d7e3a70bd76b61;p=thirdparty%2Fopenssl.git VMS: Compensate for x86_64 cross compiler type incompatibility The x86_64 cross compiler says that 'unsigned long long' isn't the same as 'unsigned __int64'. Sure, and considering that providers/implementations/rands/seeding/rand_vms.c is specific VMS only code, it's easy to just change the type to the exact same as what's specified in the system headers. Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/16497) --- diff --git a/providers/implementations/rands/seeding/rand_vms.c b/providers/implementations/rands/seeding/rand_vms.c index 8f8855321b2..abc06ffd5bb 100644 --- a/providers/implementations/rands/seeding/rand_vms.c +++ b/providers/implementations/rands/seeding/rand_vms.c @@ -479,7 +479,7 @@ int ossl_pool_add_nonce_data(RAND_POOL *pool) struct { pid_t pid; CRYPTO_THREAD_ID tid; - uint64_t time; + unsigned __int64 time; } data; /* Erase the entire structure including any padding */ @@ -580,7 +580,7 @@ int ossl_rand_pool_add_additional_data(RAND_POOL *pool) { struct { CRYPTO_THREAD_ID tid; - uint64_t time; + unsigned __int64 time; } data; /* Erase the entire structure including any padding */