Mercurial > hg > octave-nkf > gnulib-hg
changeset 7354:7245c2d3aec7
* sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
---|---|
date | Fri, 22 Sep 2006 17:25:00 +0000 |
parents | ac936640ad9e |
children | c2852b1c0fb6 |
files | m4/ChangeLog m4/sockpfaf.m4 |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> + + * sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings. + 2006-09-17 Bruno Haible <bruno@clisp.org> * getloadavg.m4 (gl_GETLOADAVG): Expect the directory of getloadavg.c
--- a/m4/sockpfaf.m4 +++ b/m4/sockpfaf.m4 @@ -1,4 +1,4 @@ -# sockpfaf.m4 serial 4 +# sockpfaf.m4 serial 5 dnl Copyright (C) 2004, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -28,7 +28,8 @@ #ifdef HAVE_WINSOCK2_H #include <winsock2.h> #endif], -[int x = AF_INET; struct in_addr y; struct sockaddr_in z;], +[int x = AF_INET; struct in_addr y; struct sockaddr_in z; + if (&x && &y && &z) return 0;], gl_cv_socket_ipv4=yes, gl_cv_socket_ipv4=no)]) AC_MSG_RESULT($gl_cv_socket_ipv4) if test $gl_cv_socket_ipv4 = yes; then @@ -47,7 +48,8 @@ #ifdef HAVE_WINSOCK2_H #include <winsock2.h> #endif], -[int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;], +[int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; + if (&x && &y && &z) return 0;], gl_cv_socket_ipv6=yes, gl_cv_socket_ipv6=no)]) AC_MSG_RESULT($gl_cv_socket_ipv6) if test $gl_cv_socket_ipv6 = yes; then