diff --git a/lib/libarchive/Makefile b/lib/libarchive/Makefile index a1b8715d0f5f..45815576dc01 100644 --- a/lib/libarchive/Makefile +++ b/lib/libarchive/Makefile @@ -32,7 +32,7 @@ INCS= archive.h archive_entry.h # Note: FreeBSD has inttypes.h, so enable that include in archive.h.in archive.h: archive.h.in Makefile cat ${.CURDIR}/archive.h.in | \ - sed 's/@VERSION@/${VERSION}/g' | \ + sed 's/@ARCHIVE_VERSION@/${VERSION}/g' | \ sed 's/@SHLIB_MAJOR@/${SHLIB_MAJOR}/g' | \ sed 's/@ARCHIVE_API_MAJOR@/${ARCHIVE_API_MAJOR}/g' | \ sed 's/@ARCHIVE_API_MINOR@/${ARCHIVE_API_MINOR}/g' | \ diff --git a/lib/libarchive/archive.h.in b/lib/libarchive/archive.h.in index 3fa327373606..0f83800336ac 100644 --- a/lib/libarchive/archive.h.in +++ b/lib/libarchive/archive.h.in @@ -30,7 +30,7 @@ /* * This header file corresponds to: - * Library version @VERSION@ + * Library version @ARCHIVE_VERSION@ * Shared library version @SHLIB_MAJOR@ */ @@ -73,7 +73,7 @@ int archive_api_version(void); #define ARCHIVE_API_FEATURE @ARCHIVE_API_MINOR@ int archive_api_feature(void); /* Textual name/version of the library. */ -#define ARCHIVE_LIBRARY_VERSION "libarchive @VERSION@" +#define ARCHIVE_LIBRARY_VERSION "libarchive @ARCHIVE_VERSION@" const char * archive_version(void); #define ARCHIVE_BYTES_PER_RECORD 512