summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-05 13:20:15 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-05 13:20:15 -0500
commitb0cd1b9c23cbaf7b5c5f82b0f9ef99ed77e44edf (patch)
treebf91b33d6a053e1a33c16b51be2af2ad77435c54
parentf3e8e10b347c10fa87b3e44d2a4d02c12b845916 (diff)
downloadrtems-libbsd-b0cd1b9c23cbaf7b5c5f82b0f9ef99ed77e44edf.tar.bz2
getaddrinfo.c: Use freebsd/ to ully specify kernel .h files
-rw-r--r--freebsd-userspace/lib/libc/net/getaddrinfo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/freebsd-userspace/lib/libc/net/getaddrinfo.c b/freebsd-userspace/lib/libc/net/getaddrinfo.c
index bbd5efab..b9b52794 100644
--- a/freebsd-userspace/lib/libc/net/getaddrinfo.c
+++ b/freebsd-userspace/lib/libc/net/getaddrinfo.c
@@ -66,11 +66,18 @@ __FBSDID("$FreeBSD$");
#include <netinet/in.h>
#include <sys/queue.h>
#ifdef INET6
+#ifdef __rtems__
+#include <freebsd/net/if_var.h>
+#include <sys/sysctl.h>
+#include <sys/ioctl.h>
+#include <freebsd/netinet6/in6_var.h> /* XXX */
+#else
#include <net/if_var.h>
#include <sys/sysctl.h>
#include <sys/ioctl.h>
#include <netinet6/in6_var.h> /* XXX */
#endif
+#endif
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <rpc/rpc.h>