diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2012-07-11 17:20:30 +0200 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2012-07-11 17:20:30 +0200 |
commit | 122b9bf4fd0633cb11e00a8136e8039f0a14ecd6 (patch) | |
tree | 8c20a7e026862c9df6816cb8d35cf3b63c4eb24e /Configure | |
parent | 720adda90da7e4ec3ec156d0a257cf92a281b626 (diff) | |
download | perl-122b9bf4fd0633cb11e00a8136e8039f0a14ecd6.tar.gz |
Add IP probe for ip_mreq
Backport 2f1eb816b5cba6977b1a8159
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -28,7 +28,7 @@ # See Porting/pumpkin.pod for more information on metaconfig. # -# Generated on Sun Apr 1 12:00:35 CEST 2012 [metaconfig 3.5 PL0] +# Generated on Wed Jul 11 16:58:32 CEST 2012 [metaconfig 3.5 PL0] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <<EOF @@ -723,6 +723,7 @@ d_snprintf='' d_vsnprintf='' d_sockatmark='' d_sockatmarkproto='' +d_ip_mreq='' d_ipv6_mreq='' d_msg_ctrunc='' d_msg_dontroute='' @@ -11371,6 +11372,24 @@ set d_sin6_scope_id; eval $setvar $rm_try echo " " +echo "Checking the availability struct ip_mreq ..." >&4 +$cat >try.c <<EOF +#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/in.h> +int main() { +struct ip_mreq mreq; +return (mreq.imr_multiaddr.s_addr); +} +EOF +val="$undef" +set try; if eval $compile; then + val="$define" +fi +set d_ip_mreq; eval $setvar +$rm_try + +echo " " echo "Checking the availability struct ipv6_mreq ..." >&4 $cat >try.c <<EOF #include <sys/types.h> @@ -23023,6 +23042,7 @@ d_inetaton='$d_inetaton' d_inetntop='$d_inetntop' d_inetpton='$d_inetpton' d_int64_t='$d_int64_t' +d_ip_mreq='$d_ip_mreq' d_ipv6_mreq='$d_ipv6_mreq' d_isascii='$d_isascii' d_isblank='$d_isblank' |