Skip to content

Commit

Permalink
fix building with libressl
Browse files Browse the repository at this point in the history
patch from Gentoo Bug 614460, credit to hexumg@gmail.com.
  • Loading branch information
mingzym committed Apr 9, 2017
1 parent d4103c6 commit 296123e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libarchive/archive_openssl_hmac_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <openssl/hmac.h>
#include <openssl/opensslv.h>

#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
#include <stdlib.h> /* malloc, free */
#include <string.h> /* memset */
static inline HMAC_CTX *HMAC_CTX_new(void)
Expand Down

0 comments on commit 296123e

Please sign in to comment.