004-libbb-sha-add-missing-guard.patch 495 B

1234567891011121314151617
  1. diff --git a/libbb/hash_md5_sha.c b/libbb/hash_md5_sha.c
  2. index 57a801459..75a61c32c 100644
  3. --- a/libbb/hash_md5_sha.c
  4. +++ b/libbb/hash_md5_sha.c
  5. @@ -1313,7 +1313,9 @@ unsigned FAST_FUNC sha1_end(sha1_ctx_t *ctx, void *resbuf)
  6. hash_size = 8;
  7. if (ctx->process_block == sha1_process_block64
  8. #if ENABLE_SHA1_HWACCEL
  9. +# if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
  10. || ctx->process_block == sha1_process_block64_shaNI
  11. +# endif
  12. #endif
  13. ) {
  14. hash_size = 5;
  15. --
  16. 2.48.1