mirror of
https://github.com/tiann/KernelSU.git
synced 2025-02-20 11:43:32 +08:00
website: added conditional preprocessor directive (#1774)
Signed-off-by: Akari <akariondev@gmail.com>
This commit is contained in:
parent
6a3979842b
commit
81f1a47cec
@ -316,7 +316,9 @@ index 32f6f1c68..d69d8eca2 100644
|
||||
return dentry;
|
||||
}
|
||||
|
||||
+#ifdef CONFIG_KSU
|
||||
+extern int ksu_handle_devpts(struct inode*);
|
||||
+#endif
|
||||
+
|
||||
/**
|
||||
* devpts_get_priv -- get private data for a slave
|
||||
@ -325,7 +327,9 @@ index 32f6f1c68..d69d8eca2 100644
|
||||
*/
|
||||
void *devpts_get_priv(struct dentry *dentry)
|
||||
{
|
||||
+ #ifdef CONFIG_KSU
|
||||
+ ksu_handle_devpts(dentry->d_inode);
|
||||
+ #endif
|
||||
if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC)
|
||||
return NULL;
|
||||
return dentry->d_fsdata;
|
||||
|
Loading…
x
Reference in New Issue
Block a user