[rtems-libbsd commit] Fix struct ucred warnings

Sebastian Huber sebh at rtems.org
Wed May 20 13:03:57 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    7d4470714519c5c0880835a86bbe70494c2e7e47
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=7d4470714519c5c0880835a86bbe70494c2e7e47

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed May 20 13:49:30 2015 +0200

Fix struct ucred warnings

---

 freebsd/sys/sys/conf.h | 3 +++
 freebsd/sys/sys/priv.h | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/freebsd/sys/sys/conf.h b/freebsd/sys/sys/conf.h
index b4f270f..d65759f 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 1797714..1d1e8f2 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__ */




More information about the vc mailing list