diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-06-23 06:48:57 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-06-23 06:48:57 +0000 |
commit | 9e390129c5d397a9c075eb100fdeac1dc6bed81d (patch) | |
tree | 50cd8b290d7648139ee43f3245ffeb84468ced78 /ace/ACE.cpp | |
parent | 66ba1aae9495f3c0e72238c5752dbd19d5fd455a (diff) | |
download | ATCD-9e390129c5d397a9c075eb100fdeac1dc6bed81d.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/ACE.cpp')
-rw-r--r-- | ace/ACE.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp index f58ea0e105f..2d8143ebcf1 100644 --- a/ace/ACE.cpp +++ b/ace/ACE.cpp @@ -1564,11 +1564,11 @@ int ACE::count_interfaces (ACE_HANDLE handle, size_t &how_many) { -#if defined(__SVR4) +#if defined (sparc) if (ACE_OS::ioctl (handle, SIOCGIFNUM, (caddr_t) &how_many) == -1) ACE_ERROR_RETURN ((LM_ERROR, "ACE::get_ip_interfaces:ioctl - SIOCGIFNUM failed"), -1); return 0; -#elif defined (__unix) +#elif defined (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 algorithm @@ -1629,9 +1629,9 @@ ACE::get_handle (void) { // Solaris 2.x ACE_HANDLE handle = ACE_INVALID_HANDLE; -#if defined(__SVR4) +#if defined (sparc) handle = ACE_OS::open ("/dev/udp", O_RDONLY); -#elif defined(__unix) +#elif defined (unix) // BSD compatible OS: HP UX, AIX, SunOS 4.x handle = ACE_OS::socket (PF_INET, SOCK_DGRAM, 0); #endif /* __SVR4 */ |