summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2006-10-25 08:45:27 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2006-10-25 08:45:27 +0000
commit7021ee1285ce727668460e65e0d689f04def853f (patch)
treef4643f9990239203a1529d81bcd8f33ae3106b37
parentc2b82aa34b2a92217702755128a253f8cfc8a411 (diff)
downloadATCD-7021ee1285ce727668460e65e0d689f04def853f.tar.gz
Wed Oct 25 08:38:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r--ACE/ace/config-rtems.h1
-rw-r--r--ACE/ace/os_include/os_netdb.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/ACE/ace/config-rtems.h b/ACE/ace/config-rtems.h
index e01a645d1ea..118ffe62fce 100644
--- a/ACE/ace/config-rtems.h
+++ b/ACE/ace/config-rtems.h
@@ -164,6 +164,7 @@
# define ACE_LACKS_HOSTENT
# define ACE_LACKS_SOCKADDR
# define ACE_LACKS_IP_MREQ
+# define ACE_LACKS_PROTOENT
// Missing methods
# define ACE_LACKS_GETHOSTBYADDR
diff --git a/ACE/ace/os_include/os_netdb.h b/ACE/ace/os_include/os_netdb.h
index 1847b5daf3d..f51bfd0aa0f 100644
--- a/ACE/ace/os_include/os_netdb.h
+++ b/ACE/ace/os_include/os_netdb.h
@@ -60,6 +60,14 @@ struct hostent {
};
#endif /* ACE_LACKS_HOSTENT */
+#if defined (ACE_LACKS_PROTOENT)
+struct protoent {
+ char *p_name; /* official protocol name */
+ char **p_aliases; /* alias list */
+ int p_proto; /* protocol # */
+};
+#endif /* ACE_LACKS_PROTOENT */
+
#if defined (ACE_HAS_STRUCT_NETDB_DATA)
typedef char ACE_HOSTENT_DATA[sizeof(struct hostent_data)];
typedef char ACE_SERVENT_DATA[sizeof(struct servent_data)];