summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-05-20 13:49:30 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-05-20 15:03:32 +0200
commit7d4470714519c5c0880835a86bbe70494c2e7e47 (patch)
tree67f34de18540ddca2f451c4b7218e2489a28fdf9
parentwscript: Regenerate. (diff)
downloadrtems-libbsd-7d4470714519c5c0880835a86bbe70494c2e7e47.tar.bz2
Fix struct ucred warnings
-rw-r--r--freebsd/sys/sys/conf.h3
-rw-r--r--freebsd/sys/sys/priv.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/freebsd/sys/sys/conf.h b/freebsd/sys/sys/conf.h
index b4f270f4..d65759f1 100644
--- a/freebsd/sys/sys/conf.h
+++ b/freebsd/sys/sys/conf.h
@@ -50,6 +50,9 @@ struct snapdata;
struct devfs_dirent;
struct cdevsw;
struct file;
+#ifdef __rtems__
+struct ucred;
+#endif /* __rtems__ */
struct cdev {
struct mount *si_mountpt;
diff --git a/freebsd/sys/sys/priv.h b/freebsd/sys/sys/priv.h
index 1797714a..1d1e8f20 100644
--- a/freebsd/sys/sys/priv.h
+++ b/freebsd/sys/sys/priv.h
@@ -514,9 +514,9 @@
* instead of the effective uid, and whether or not the check should be
* allowed in jail.
*/
-#ifndef __rtems__
struct thread;
struct ucred;
+#ifndef __rtems__
int priv_check(struct thread *td, int priv);
int priv_check_cred(struct ucred *cred, int priv, int flags);
#else /* __rtems__ */