mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-26 16:12:45 +08:00
Fix struct ucred warnings
This commit is contained in:
parent
8b102105ee
commit
7d44707145
@ -50,6 +50,9 @@ struct snapdata;
|
|||||||
struct devfs_dirent;
|
struct devfs_dirent;
|
||||||
struct cdevsw;
|
struct cdevsw;
|
||||||
struct file;
|
struct file;
|
||||||
|
#ifdef __rtems__
|
||||||
|
struct ucred;
|
||||||
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
struct cdev {
|
struct cdev {
|
||||||
struct mount *si_mountpt;
|
struct mount *si_mountpt;
|
||||||
|
@ -514,9 +514,9 @@
|
|||||||
* instead of the effective uid, and whether or not the check should be
|
* instead of the effective uid, and whether or not the check should be
|
||||||
* allowed in jail.
|
* allowed in jail.
|
||||||
*/
|
*/
|
||||||
#ifndef __rtems__
|
|
||||||
struct thread;
|
struct thread;
|
||||||
struct ucred;
|
struct ucred;
|
||||||
|
#ifndef __rtems__
|
||||||
int priv_check(struct thread *td, int priv);
|
int priv_check(struct thread *td, int priv);
|
||||||
int priv_check_cred(struct ucred *cred, int priv, int flags);
|
int priv_check_cred(struct ucred *cred, int priv, int flags);
|
||||||
#else /* __rtems__ */
|
#else /* __rtems__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user