diff options
author | Gokturk Yuksek <gokturk@gentoo.org> | 2018-04-04 16:37:33 -0400 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-04-04 22:37:33 +0200 |
commit | 80fed6f7f70f27596b8d0568ae0de06087dc8b73 (patch) | |
tree | 3ea40b4fdc70d6ce88905dc1886d57611c51f932 /src/Platform/Unix/FilesystemPath.cpp | |
parent | 1d4a02b6724f3df6fde80f29d2e551d7126652de (diff) | |
download | VeraCrypt-80fed6f7f70f27596b8d0568ae0de06087dc8b73.tar.gz VeraCrypt-80fed6f7f70f27596b8d0568ae0de06087dc8b73.zip |
Platform/Unix: include <sys/sysmacros.h> for major/minor macros (#303)
Starting with glibc 2.26, macros "major" and "minor" are only
available from <sys/sysmacros.h> [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
Diffstat (limited to 'src/Platform/Unix/FilesystemPath.cpp')
-rw-r--r-- | src/Platform/Unix/FilesystemPath.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 <stdio.h> #include <sys/stat.h> +#include <sys/sysmacros.h> namespace VeraCrypt { |