Permalink
Browse files

- Added multicast support to the sockets extension (bug #40510).

  • Loading branch information...
cataphract committed Mar 14, 2011
1 parent cedd0a7 commit e4298bf0fb4e3340a0be109521124353a622c17d
View
@@ -18,7 +18,7 @@ if test "$PHP_SOCKETS" != "no"; then
AC_DEFINE(HAVE_CMSGHDR,1,[Whether you have struct cmsghdr])
fi
- AC_CHECK_FUNCS([hstrerror socketpair])
+ AC_CHECK_FUNCS([hstrerror socketpair if_nametoindex])
AC_CHECK_HEADERS([netdb.h netinet/tcp.h sys/un.h errno.h])
AC_TRY_COMPILE([
#include <sys/types.h>
@@ -28,6 +28,6 @@ if test "$PHP_SOCKETS" != "no"; then
)
AC_DEFINE([HAVE_SOCKETS], 1, [ ])
- PHP_NEW_EXTENSION([sockets], [sockets.c], [$ext_shared])
+ PHP_NEW_EXTENSION([sockets], [sockets.c multicast.c], [$ext_shared])
PHP_INSTALL_HEADERS([ext/sockets/], [php_sockets.h])
fi
View
@@ -5,8 +5,9 @@ ARG_ENABLE("sockets", "SOCKETS support", "no");
if (PHP_SOCKETS != "no") {
if (CHECK_LIB("ws2_32.lib", "sockets", PHP_SOCKETS)
+ && CHECK_LIB("Iphlpapi.lib", "sockets", PHP_SOCKETS)
&& CHECK_HEADER_ADD_INCLUDE("winsock.h", "CFLAGS_SOCKETS")) {
- EXTENSION('sockets', 'sockets.c');
+ EXTENSION('sockets', 'sockets.c multicast.c');
AC_DEFINE('HAVE_SOCKETS', 1);
PHP_INSTALL_HEADERS("ext/sockets", "php_sockets.h");
} else {
Oops, something went wrong.

0 comments on commit e4298bf

Please sign in to comment.