summaryrefslogtreecommitdiffstats
path: root/freebsd-userspace/include/err.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd-userspace/include/err.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);