diff options
Diffstat (limited to 'mcon/U/d_sockaddr_in_sin_len.U')
-rw-r--r-- | mcon/U/d_sockaddr_in_sin_len.U | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/mcon/U/d_sockaddr_in_sin_len.U b/mcon/U/d_sockaddr_in_sin_len.U new file mode 100644 index 0000000..1a4cf67 --- /dev/null +++ b/mcon/U/d_sockaddr_in_sin_len.U @@ -0,0 +1,53 @@ +?RCS: $Id: d_sockaddr_in_sin_len.U 167 2013-05-08 17:58:00Z rmanfredi $ +?RCS: +?RCS: Copyright (c) 2006, Christian Biere +?RCS: +?RCS: You may redistribute only under the terms of the Artistic License, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic License; a copy of which may be found at the root +?RCS: of the source tree for dist 4.0. +?RCS: +?MAKE:d_sockaddr_in_sin_len: Trylink cat i_arpainet i_syssock i_winsock2 i_niin +?MAKE: -pick add $@ %< +?S:d_sockaddr_in_sin_len: +?S: This variable conditionally defines the HAS_SOCKADDR_IN_SIN_LEN symbol, +?S: indicates to the C program that struct sockaddr_in has a member named +?S: "sin_len". +?S:. +?C:HAS_SOCKADDR_IN_SIN_LEN: +?C: This symbol is defined if struct sockaddr_in has sin_len. +?C:. +?H:#$d_sockaddr_in_sin_len HAS_SOCKADDR_IN_SIN_LEN +?H:. +?LINT: set d_sockaddr_in_sin_len +: does struct sockaddr_in has sin_len +$cat >try.c <<EOC +#$i_syssock I_SYS_SOCKET +#$i_niin I_NETINET_IN +#$i_winsock2 I_WINSOCK2 +#$i_arpainet I_ARPA_INET +#include <sys/types.h> +#ifdef I_SYS_SOCKET +#include <sys/socket.h> +#endif +#ifdef I_NETINET_IN +#include <netinet/in.h> +#endif +#ifdef I_ARPA_INET +#include <arpa/inet.h> +#endif +#ifdef I_WINSOCK2 +#include <Winsock2.h> +#endif +int main(void) +{ + static struct sockaddr_in addr; + addr.sin_len = 1; + return 0; +} +EOC +cyn="whether 'struct sockaddr_in' has a 'sin_len' member" +set d_sockaddr_in_sin_len +eval $trylink + |