Branch: Tag:

2003-04-23

2003-04-23 15:32:15 by Marcus Comstedt <marcus@mc.pp.se>

Allow room for IPv6 addresses in sockaddr values.

Rev: src/acconfig.h:1.124
Rev: src/configure.in:1.716
Rev: src/modules/HTTPLoop/accept_and_parse.c:1.32
Rev: src/modules/HTTPLoop/accept_and_parse.h:1.13
Rev: src/modules/HTTPLoop/cache.c:1.21
Rev: src/modules/HTTPLoop/log.c:1.16
Rev: src/modules/HTTPLoop/requestobject.c:1.27
Rev: src/modules/HTTPLoop/timeout.c:1.14
Rev: src/modules/HTTPLoop/util.c:1.11
Rev: src/modules/files/file.c:1.271
Rev: src/modules/files/file.h:1.27
Rev: src/modules/files/socket.c:1.70
Rev: src/modules/files/udp.c:1.46
Rev: src/modules/system/system.c:1.146
Rev: src/pike_netlib.h:1.1

1: - AC_REVISION("$Id: configure.in,v 1.715 2003/04/04 20:31:58 marcus Exp $") + AC_REVISION("$Id: configure.in,v 1.716 2003/04/23 15:31:18 marcus Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
3459:      #############################################################################    + AC_MSG_CHECKING(struct sockaddr_in6) +  + AC_CACHE_VAL(pike_cv_has_struct_sockaddr_in6,[ + AC_TRY_LINK([ + #ifdef HAVE_SYS_TYPES_H + #include <sys/types.h> + #endif /* HAVE_SYS_TYPES_H */ + #ifdef HAVE_UNISTD_H + #include <unistd.h> + #endif /* HAVE_UNISTD_H */ + #ifdef HAVE_SYS_SOCKET_H + #include <sys/socket.h> + #endif /* HAVE_SYS_SOCKET_H */ + #ifdef HAVE_NETINET_IN_H + #include <netinet/in.h> + #endif /* HAVE_NETINET_IN_H */ + ],[ +  struct sockaddr_in6 foo; + ],pike_cv_has_struct_sockaddr_in6=yes,pike_cv_has_struct_sockaddr_in6=no) + ]) +  + if test "$pike_cv_has_struct_sockaddr_in6" = "yes"; then +  AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6) + fi +  + AC_MSG_RESULT($pike_cv_has_struct_sockaddr_in6) +  + ############################################################################# +    if test "x$ac_cv_func_strtol" = "xyes"; then    AC_MSG_CHECKING(if strtol works for large hexadecimal constants)    AC_CACHE_VAL(pike_cv_func_strtol_works, [