[PATCH 1/5] random: Don't assume that _WIN64 implies x86_64

Jussi Kivilinna jussi.kivilinna at iki.fi
Thu Mar 22 20:10:40 CET 2018


Hello,

On 22.03.2018 10:56, Martin Storsjö wrote:
> This fixes building this file for windows on aarch64.
> 
> Signed-off-by: Martin Storsjö <martin at martin.st>

Thanks for the patches. There is few generic things that needs to be done
before these can be applied:
 - Check signing off DCO part in doc/HACKING
 - Add ChangeLog entries to beginning of commit log, see existing commit
   messages for example.

I'm interested in testing these patches myself. Can you give some pointers
for how to cross-compile libgcrypt for windows/aarch64?

-Jussi

> ---
>  random/rndw32.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/random/rndw32.c b/random/rndw32.c
> index 7e9ac50..08a8867 100644
> --- a/random/rndw32.c
> +++ b/random/rndw32.c
> @@ -986,7 +986,7 @@ _gcry_rndw32_gather_random_fast (void (*add)(const void*, size_t,
>  
>       On AMD64, TSC is always available and intrinsic is provided for accessing
>       it.  */
> -#ifdef __WIN64__
> +#ifdef __x86_64__
>      {
>        unsigned __int64 aint64;
>  
> @@ -1024,7 +1024,7 @@ _gcry_rndw32_gather_random_fast (void (*add)(const void*, size_t,
>            (*add) (&aword, sizeof (aword), origin );
>          }
>      }
> -#endif /*__WIN64__*/
> +#endif /*__x86_64__*/
>  
>  
>  }
> 




More information about the Gcrypt-devel mailing list