summaryrefslogtreecommitdiffstats
path: root/crypto/ext4crypt/Ext4Crypt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/ext4crypt/Ext4Crypt.cpp')
-rw-r--r--crypto/ext4crypt/Ext4Crypt.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/ext4crypt/Ext4Crypt.cpp b/crypto/ext4crypt/Ext4Crypt.cpp
index 8bc419992..ea5b1cf88 100644
--- a/crypto/ext4crypt/Ext4Crypt.cpp
+++ b/crypto/ext4crypt/Ext4Crypt.cpp
@@ -41,8 +41,16 @@
#include <private/android_filesystem_config.h>
+#ifdef HAVE_SYNTH_PWD_SUPPORT
+#include <ext4_utils/ext4_crypt.h>
+#else
#include "ext4_crypt.h"
+#endif
+#ifndef HAVE_LIBKEYUTILS
#include "key_control.h"
+#else
+#include <keyutils.h>
+#endif
#include <hardware/gatekeeper.h>
#include "HashPassword.h"