# HG changeset patch # User Simon Josefsson # Date 1209461201 -7200 # Node ID bef830fad24f70f80440b94748ce3a54a0f2934f # Parent b0a275071b2c46885e540d3b2983e0166a1f958c Make arpa/inet module build under MinGW. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-04-29 Simon Josefsson + + * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set + HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON. + + * modules/arpa_inet (arpa/inet.h): Use them. + 2008-04-28 Eric Blake Test getndelim2. diff --git a/m4/arpa_inet_h.m4 b/m4/arpa_inet_h.m4 --- a/m4/arpa_inet_h.m4 +++ b/m4/arpa_inet_h.m4 @@ -32,4 +32,7 @@ [ GNULIB_INET_NTOP=0; AC_SUBST([GNULIB_INET_NTOP]) GNULIB_INET_PTON=0; AC_SUBST([GNULIB_INET_PTON]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_DECL_INET_NTOP=1; AC_SUBST([HAVE_DECL_INET_NTOP]) + HAVE_DECL_INET_PTON=1; AC_SUBST([HAVE_DECL_INET_PTON]) ]) diff --git a/modules/arpa_inet b/modules/arpa_inet --- a/modules/arpa_inet +++ b/modules/arpa_inet @@ -24,6 +24,8 @@ sed \ -e 's|@''GNULIB_INET_NTOP''@|$(GNULIB_INET_NTOP)|g' \ -e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \ + -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \ + -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \ < $(srcdir)/arpa_inet.in.h; \ } > $@-t mv $@-t $@