diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2005-05-30 14:16:14 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2005-05-30 14:16:14 +0400 |
commit | be182f8431e990ceb001742f36dc88b4a117a32d (patch) | |
tree | eca5e06628fc27300eb59fccbf199296835de575 /configure.in | |
parent | 2f9d43d81013023695399ffb271d37eb1c1edf5f (diff) |
2005-05-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* configure.in: added test for SIOCGIFCONF.
* mono/metadata/socket-io.c: when resolving the addresses for the same
host returned by gethostname(), get the local IPs from the interface
list. Loopback addresses are discarded if the are interfaces up with
non-loopback ones. Fixes bug #63265.
svn path=/trunk/mono/; revision=45187
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.in b/configure.in index d81daa51c3f..824640ba61c 100644 --- a/configure.in +++ b/configure.in @@ -1126,6 +1126,28 @@ if test x$platform_win32 = xno; then AC_DEFINE(HAVE_EPOLL, 1, [epoll supported]) fi + dnl ****************************** + dnl *** Checks for SIOCGIFCONF *** + dnl ****************************** + AC_CHECK_HEADERS(sys/ioctl.h) + AC_CHECK_HEADERS(net/if.h) + AC_MSG_CHECKING(for ifreq) + AC_TRY_COMPILE([ + #include <sys/ioctl.h> + #include <net/if.h> + ], [ + struct ifconf ifc; + struct ifreq *ifr; + void *x; + ifc.ifc_len = 0; + ifc.ifc_buf = NULL; + x = (void *) &ifr->ifr_addr; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_SIOCGIFCONF, 1, [Can get interface list]) + ], [ + AC_MSG_RESULT(no) + ]) dnl ********************************** dnl *** Checks for MonoPosixHelper *** dnl ********************************** |