VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGokturk Yuksek <gokturk@gentoo.org>2018-04-04 16:37:33 -0400
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-04-04 22:37:33 +0200
commit80fed6f7f70f27596b8d0568ae0de06087dc8b73 (patch)
tree3ea40b4fdc70d6ce88905dc1886d57611c51f932
parent1d4a02b6724f3df6fde80f29d2e551d7126652de (diff)
downloadVeraCrypt-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
-rw-r--r--src/Platform/Unix/FilesystemPath.cpp1
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
{