Skip to content

Commit

Permalink
Add IP probe for ip_mreq
Browse files Browse the repository at this point in the history
Backport 2f1eb816b5cba6977b1a8159
  • Loading branch information
H.Merijn Brand committed Jul 11, 2012
1 parent 720adda commit 122b9bf
Show file tree
Hide file tree
Showing 19 changed files with 54 additions and 5 deletions.
22 changes: 21 additions & 1 deletion Configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -723,6 +723,7 @@ d_snprintf=''
d_vsnprintf=''
d_sockatmark=''
d_sockatmarkproto=''
d_ip_mreq=''
d_ipv6_mreq=''
d_msg_ctrunc=''
d_msg_dontroute=''
Expand Down Expand Up @@ -11370,6 +11371,24 @@ fi
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
Expand Down Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions Cross/config.sh-arm-linux
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ d_inetaton='define'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='define'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='define'
d_isblank='undef'
Expand Down
1 change: 1 addition & 0 deletions NetWare/config.wc
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ d_inetaton='undef'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='undef'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='define'
d_isblank='undef'
Expand Down
4 changes: 4 additions & 0 deletions Porting/Glossary
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,10 @@ d_inetpton (d_inetpton.U):
d_int64_t (d_int64_t.U):
This symbol will be defined if the C compiler supports int64_t.

d_ip_mreq (d_socket.U):
This variable conditionally defines the HAS_IP_MREQ symbol, which
indicates the availability of a struct ip_mreq.

d_ipv6_mreq (d_socket.U):
This variable conditionally defines the HAS_IPV6_MREQ symbol, which
indicates the availability of a struct ipv6_mreq.
Expand Down
1 change: 1 addition & 0 deletions Porting/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ d_inetaton='define'
d_inetntop='define'
d_inetpton='define'
d_int64_t='define'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='define'
d_isblank='undef'
Expand Down
7 changes: 6 additions & 1 deletion config_h.SH
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#define BIN "$bin" /**/
#define BIN_EXP "$binexp" /**/
#$userelocatableinc PERL_RELOCATABLE_INC /**/
#define PERL_RELOCATABLE_INC "$userelocatableinc" /**/
/* INTSIZE:
* This symbol contains the value of sizeof(int) so that the C
Expand Down Expand Up @@ -2392,6 +2392,10 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
* This symbol, if defined, indicates that the struct sockaddr_in6
* structure has a member called sin6_scope_id.
*/
/* HAS_IP_MREQ:
* This symbol, if defined, indicates the availability of
* struct ip_mreq;
*/
/* HAS_IPV6_MREQ:
* This symbol, if defined, indicates the availability of
* struct ipv6_mreq;
Expand All @@ -2407,6 +2411,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
#$d_scm_rights HAS_SCM_RIGHTS /**/
#$d_sockaddr_in6 HAS_SOCKADDR_IN6 /**/
#$d_sin6_scope_id HAS_SIN6_SCOPE_ID /**/
#$d_ip_mreq HAS_IP_MREQ /**/
#$d_ipv6_mreq HAS_IPV6_MREQ /**/
/* HAS_SRAND48_R:
Expand Down
1 change: 1 addition & 0 deletions configure.com
Original file line number Diff line number Diff line change
Expand Up @@ -6076,6 +6076,7 @@ $ WC "d_inetaton='undef'"
$ WC "d_inetntop='undef'"
$ WC "d_inetpton='undef'"
$ WC "d_int64_t='" + d_int64_t + "'"
$ WC "d_ip_mreq='define'"
$ WC "d_ipv6_mreq='define'"
$ WC "d_isascii='define'"
$ WC "d_isblank='undef'"
Expand Down
1 change: 1 addition & 0 deletions epoc/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ d_inetntop='undef'
d_inetpton='undef'
d_int64_t='undef'
d_iovec_s='undef'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='define'
d_isblank='undef'
Expand Down
1 change: 1 addition & 0 deletions metaconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* HAS_GMTIME64
* HAS_ISBLANK
* HAS_LOCALTIME64
* HAS_IP_MREQ
* HAS_IPV6_MREQ
* HAS_MKTIME64
* HAS_PRCTL
Expand Down
1 change: 1 addition & 0 deletions plan9/config_sh.sample
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ d_inetaton='undef'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='define'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='undef'
d_isblank='undef'
Expand Down
1 change: 1 addition & 0 deletions symbian/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ d_inetaton='undef'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='undef'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='undef'
d_isblank='undef'
Expand Down
11 changes: 8 additions & 3 deletions uconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@
*/
#define BIN "/usr/local/bin" /**/
#define BIN_EXP "/usr/local/bin" /**/
/*#define PERL_RELOCATABLE_INC / **/
#define PERL_RELOCATABLE_INC "undef" /**/

/* INTSIZE:
* This symbol contains the value of sizeof(int) so that the C
Expand Down Expand Up @@ -2359,6 +2359,10 @@
* This symbol, if defined, indicates that the struct sockaddr_in6
* structure has a member called sin6_scope_id.
*/
/* HAS_IP_MREQ:
* This symbol, if defined, indicates the availability of
* struct ip_mreq;
*/
/* HAS_IPV6_MREQ:
* This symbol, if defined, indicates the availability of
* struct ipv6_mreq;
Expand All @@ -2374,6 +2378,7 @@
/*#define HAS_SCM_RIGHTS / **/
/*#define HAS_SOCKADDR_IN6 / **/
/*#define HAS_SIN6_SCOPE_ID / **/
/*#define HAS_IP_MREQ / **/
/*#define HAS_IPV6_MREQ / **/

/* HAS_SRAND48_R:
Expand Down Expand Up @@ -4734,6 +4739,6 @@
#endif

/* Generated from:
* d9b6a68b192c72c0695b560fae6e4916b381f55df5fdf7911b0ef434840f092e config_h.SH
* 573628443b0f7d922ef2706de7e05f3d5ff794bcb6708b68ddcecd0e2d30e7bd uconfig.sh
* 450f87b8e0de509bd7e72485185b4060363119bedef2b8aff868354f42708a78 config_h.SH
* e3a05060ae46f0ca7ea3a4fd9a4c2dcd60caf070529116479a74830d923d1ca3 uconfig.sh
* ex: set ro: */
1 change: 1 addition & 0 deletions uconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ d_inetaton='undef'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='undef'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='undef'
d_isblank='undef'
Expand Down
1 change: 1 addition & 0 deletions uconfig64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ d_inetaton='undef'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='undef'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='undef'
d_isblank='undef'
Expand Down
1 change: 1 addition & 0 deletions win32/config.ce
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ d_inetaton='undef'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='undef'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='define'
d_isblank='undef'
Expand Down
1 change: 1 addition & 0 deletions win32/config.gc
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ d_inetaton='undef'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='undef'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='define'
d_isblank='undef'
Expand Down
1 change: 1 addition & 0 deletions win32/config.gc64
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ d_inetaton='undef'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='undef'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='define'
d_isblank='undef'
Expand Down
1 change: 1 addition & 0 deletions win32/config.vc
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ d_inetaton='undef'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='undef'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='define'
d_isblank='undef'
Expand Down
1 change: 1 addition & 0 deletions win32/config.vc64
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ d_inetaton='undef'
d_inetntop='undef'
d_inetpton='undef'
d_int64_t='undef'
d_ip_mreq='undef'
d_ipv6_mreq='undef'
d_isascii='define'
d_isblank='undef'
Expand Down

0 comments on commit 122b9bf

Please sign in to comment.