From e286d7013756d55682382c9edde514ff1a49f0bd Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Sat, 9 Mar 2024 12:42:14 -0600 Subject: [PATCH] include in blockalign_src to provide uintptr_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On my system, compiling urbackup-client causes error ``` blockalign_src/crc.cpp: In function ‘bool cryptopp_crc::IsAlignedOn(const void*, unsigned int)’: blockalign_src/crc.cpp:191:23: error: ‘uintptr_t’ does not name a type 191 | const uintptr_t x = reinterpret_cast(ptr); ``` This change fixes this error --- blockalign_src/crc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blockalign_src/crc.cpp b/blockalign_src/crc.cpp index a7a7d7d84..f8948cd9a 100644 --- a/blockalign_src/crc.cpp +++ b/blockalign_src/crc.cpp @@ -6,6 +6,8 @@ #include #endif +#include // for uintptr_t data type + // Visual Studio needs VS2008 (1500) // http://msdn.microsoft.com/en-us/library/bb531394%28v=vs.90%29.aspx #if defined(_MSC_VER) && (_MSC_VER < 1500)