website: added conditional preprocessor directive (#1774)

Signed-off-by: Akari <akariondev@gmail.com>
This commit is contained in:
Akari 2024-05-26 23:33:44 -03:00 committed by GitHub
parent 6a3979842b
commit 81f1a47cec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;