1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

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
This commit is contained in:
Gokturk Yuksek
2018-04-04 16:37:33 -04:00
committed by Mounir IDRASSI
parent 1d4a02b672
commit 80fed6f7f7

View File

@@ -15,6 +15,7 @@
#include "Platform/StringConverter.h"
#include <stdio.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
namespace VeraCrypt
{