summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-05 13:17:06 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-05 13:17:06 -0500
commitf3e8e10b347c10fa87b3e44d2a4d02c12b845916 (patch)
treef76159c24fc27f79665ba603c56bd3ce3205aa5b
parentping6.c: Add include of port_before.h (diff)
downloadrtems-libbsd-f3e8e10b347c10fa87b3e44d2a4d02c12b845916.tar.bz2
err.h: For rtems include <freebsd/sys/_types.h>
-rw-r--r--freebsd-userspace/include/err.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd-userspace/include/err.h b/freebsd-userspace/include/err.h
index 675c708f..0bf9d593 100644
--- a/freebsd-userspace/include/err.h
+++ b/freebsd-userspace/include/err.h
@@ -44,8 +44,13 @@
* for utilities to have to include one of them to include err.h, so we get
* __va_list from <sys/_types.h> and use it.
*/
+#include <freebsd/bsd.h>
#include <sys/cdefs.h>
+#ifdef __rtems__
+#include <freebsd/sys/_types.h>
+#else
#include <sys/_types.h>
+#endif
__BEGIN_DECLS
void err(int, const char *, ...) __dead2 __printf0like(2, 3);