summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-29 12:58:21 +0200
committerAndreas Baumann <abaumann@yahoo.com>2009-03-29 12:58:21 +0200
commita60c558879e3e1ee84c7bebd71c57e72566ab0da (patch)
tree3cdf31b75aa393bd7219c08777e01c3200647f44 /include
parent8caccdd6d2ffdbcfcb24eaf7fb9828b2643fc356 (diff)
downloadwolfbones-a60c558879e3e1ee84c7bebd71c57e72566ab0da.tar.gz
wolfbones-a60c558879e3e1ee84c7bebd71c57e72566ab0da.tar.bz2
getaddrinfo on Solaris 10
Diffstat (limited to 'include')
-rw-r--r--include/wolf/port/netdb.h25
-rw-r--r--include/wolf/port/sys.h2
2 files changed, 24 insertions, 3 deletions
diff --git a/include/wolf/port/netdb.h b/include/wolf/port/netdb.h
index bec4027..b910e0d 100644
--- a/include/wolf/port/netdb.h
+++ b/include/wolf/port/netdb.h
@@ -33,6 +33,18 @@
/* so far: LINUX, NETBSD, FREEBSD */
+/* for inet_ntop */
+
+#if SUNOS
+#if OS_MAJOR_VERSION == 5
+#if OS_MINOR_VERSION == 10
+#include <sys/socket.h>
+#endif
+#endif
+#endif
+
+#include <arpa/inet.h>
+
/* for getaddrinfo, freeaddrinfo, struct getaddrinfo */
#ifdef FREEBSD
@@ -42,12 +54,19 @@
#include </usr/include/netinet/in.h> /* for IPPROTO_TCP */
#endif
+#if SUNOS
+#if OS_MAJOR_VERSION == 5
+#if OS_MINOR_VERSION == 10
+#include <sys/types.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#endif
+#endif
+#endif
+
#include <netdb.h> /* for getaddrinfo, freeadrinfo,
struct getaddrinfo */
-/* for inet_ntop */
-#include <arpa/inet.h>
-
#if !defined HAVE_GETADDRINFO || defined TEST_GETADDRINFO
extern void wolf_port_getaddrinfo( void );
#endif /* !defined HAVE_GETADDRINFO || defined TEST_GETADDRINFO */
diff --git a/include/wolf/port/sys.h b/include/wolf/port/sys.h
index 3e4435d..c293601 100644
--- a/include/wolf/port/sys.h
+++ b/include/wolf/port/sys.h
@@ -199,6 +199,8 @@
#define HAVE_SYSLOG_H
#define HAVE_STRLCPY
#define HAVE_STRLCAT
+#define HAVE_GETADDRINFO
+#define HAVE_INET_NTOP
#else
#error unknown platform
#endif /* OS_MINOR_VERSION == 10 */