* Test for the non-existance of the constant used in the ioctl instead of the
__APPLE__. This should allow OMPI to compile under Cygwin This commit was SVN r4692.
Этот коммит содержится в:
родитель
96992e5760
Коммит
8c5d0b94b9
@ -205,7 +205,7 @@ static int ompi_ifinit(void)
|
||||
strcpy(intf.if_name, ifr->ifr_name);
|
||||
intf.if_flags = ifr->ifr_flags;
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#ifndef SIOCGIFINDEX
|
||||
intf.if_index = ompi_list_get_size(&ompi_if_list)+1;
|
||||
#else
|
||||
if(ioctl(sd, SIOCGIFINDEX, ifr) < 0) {
|
||||
@ -219,7 +219,7 @@ static int ompi_ifinit(void)
|
||||
#else
|
||||
intf.if_index = -1;
|
||||
#endif
|
||||
#endif /* __APPLE__ */
|
||||
#endif /* SIOCGIFINDEX */
|
||||
|
||||
if(ioctl(sd, SIOCGIFADDR, ifr) < 0) {
|
||||
ompi_output(0, "ompi_ifinit: ioctl(SIOCGIFADDR) failed with errno=%d", errno);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user