Make arpa/inet module build under MinGW.
authorSimon Josefsson <simon@josefsson.org>
Tue, 29 Apr 2008 09:26:41 +0000 (11:26 +0200)
committerSimon Josefsson <simon@josefsson.org>
Tue, 29 Apr 2008 09:26:41 +0000 (11:26 +0200)
ChangeLog
m4/arpa_inet_h.m4
modules/arpa_inet

index 6f90e61..7dd2b27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-04-29  Simon Josefsson  <simon@josefsson.org>
+
+       * 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  <ebb9@byu.net>
 
        Test getndelim2.
index 8f530c5..baddf0d 100644 (file)
@@ -32,4 +32,7 @@ AC_DEFUN([gl_ARPA_INET_H_DEFAULTS],
 [
   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])
 ])
index e5934ac..8c5f3f9 100644 (file)
@@ -24,6 +24,8 @@ arpa/inet.h:
          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 $@