From 80fed6f7f70f27596b8d0568ae0de06087dc8b73 Mon Sep 17 00:00:00 2001 From: Gokturk Yuksek Date: Wed, 4 Apr 2018 16:37:33 -0400 Subject: Platform/Unix: include for major/minor macros (#303) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Starting with glibc 2.26, macros "major" and "minor" are only available from [0]. The build fails with the following without including this header: Unix/FilesystemPath.cpp:84:49: error: ‘major’ was not declared in this scope Unix/FilesystemPath.cpp:84:113: error: ‘minor’ was not declared in this scope [0] https://sourceware.org/ml/libc-alpha/2017-02/msg00079.html --- src/Platform/Unix/FilesystemPath.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Platform/Unix/FilesystemPath.cpp b/src/Platform/Unix/FilesystemPath.cpp index d6c9cd2b..7c28af40 100644 --- a/src/Platform/Unix/FilesystemPath.cpp +++ b/src/Platform/Unix/FilesystemPath.cpp @@ -15,6 +15,7 @@ #include "Platform/StringConverter.h" #include #include +#include namespace VeraCrypt { -- cgit v1.2.3