summaryrefslogtreecommitdiff
path: root/ACE/ace
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2006-10-25 08:49:41 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2006-10-25 08:49:41 +0000
commitf7929babe5dd0505944742a854b95c765bf55a54 (patch)
tree865134db30bbee5762f14ab05b1ef0d35d09ee27 /ACE/ace
parent96d2e46b6c2d3d656229717275b597e70e256110 (diff)
downloadATCD-f7929babe5dd0505944742a854b95c765bf55a54.tar.gz
Wed Oct 25 08:38:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace')
-rw-r--r--ACE/ace/config-rtems.h1
-rw-r--r--ACE/ace/os_include/os_netdb.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/ACE/ace/config-rtems.h b/ACE/ace/config-rtems.h
index 118ffe62fce..f63515c261f 100644
--- a/ACE/ace/config-rtems.h
+++ b/ACE/ace/config-rtems.h
@@ -165,6 +165,7 @@
# define ACE_LACKS_SOCKADDR
# define ACE_LACKS_IP_MREQ
# define ACE_LACKS_PROTOENT
+# define ACE_LACKS_SERVENT
// 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 f51bfd0aa0f..e69a3c78cf0 100644
--- a/ACE/ace/os_include/os_netdb.h
+++ b/ACE/ace/os_include/os_netdb.h
@@ -68,6 +68,15 @@ struct protoent {
};
#endif /* ACE_LACKS_PROTOENT */
+#if defined (ACE_LACKS_SERVENT)
+struct servent {
+ char *s_name; /* official service name */
+ char **s_aliases; /* alias list */
+ int s_port; /* port # */
+ char *s_proto; /* protocol to use */
+};
+#endif /* ACE_LACKS_SERVENT */
+
#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)];