From 0be9bd0b8324e6008c0aa952ff2b5361c2cc2bd4 Mon Sep 17 00:00:00 2001 From: schmidt Date: Sat, 8 Dec 2001 14:49:31 +0000 Subject: ChangeLogTag:Fri Dec 7 07:57:12 2001 Douglas C. Schmidt --- ace/Sock_Connect.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ace/Sock_Connect.cpp') diff --git a/ace/Sock_Connect.cpp b/ace/Sock_Connect.cpp index ec52f6db9e3..f4d9cd38359 100644 --- a/ace/Sock_Connect.cpp +++ b/ace/Sock_Connect.cpp @@ -790,7 +790,7 @@ ACE_Sock_Connect::get_ip_interfaces (size_t &count, # endif /* ACE_HAS_PHARLAP */ # endif /* Winsock 2 && MSVC 5 or later */ -#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX) +#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX) || defined (__MACOSX__) // COMMON (SVR4 and BSD) UNIX CODE size_t num_ifs; @@ -835,6 +835,8 @@ ACE_Sock_Connect::get_ip_interfaces (size_t &count, #if defined (AIX) int cmd = CSIOCGIFCONF; +#elif defined (__MACOSX__) + int cmd = OSIOCGIFCONF; #else int cmd = SIOCGIFCONF; #endif /* AIX */ @@ -990,7 +992,7 @@ ACE_Sock_Connect::count_interfaces (ACE_HANDLE handle, size_t &how_many) -1); how_many = (size_t) tmp_how_many; return 0; -#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX) +#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX) || defined (__MACOSX__) // Note: DEC CXX doesn't define "unix". BSD compatible OS: HP UX, // AIX, SunOS 4.x perform some ioctls to retrieve ifconf list of // ifreq structs no SIOCGIFNUM on SunOS 4.x, so use guess and scan @@ -1081,7 +1083,7 @@ ACE_Sock_Connect::get_handle (void) ACE_HANDLE handle = ACE_INVALID_HANDLE; #if defined (sparc) && ! defined (CHORUS) handle = ACE_OS::open ("/dev/udp", O_RDONLY); -#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX) +#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX) || defined (__MACOSX__) // Note: DEC CXX doesn't define "unix" BSD compatible OS: HP UX, // AIX, SunOS 4.x -- cgit v1.2.1