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 6f90e61093cf25e57c8cfa209adb85a7a8946f3e..7dd2b277f40db5a6b3326bb638a6ba69f7850681 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 8f530c5e7ab64def89cf5cb5123f59b3a7da4a83..baddf0da7208b847e082d17ae3435073ca3b1a8a 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 e5934accbf6d17c5b7283d76c62715ada756253e..8c5f3f941f3e85dc68449450f21e68a84c625096 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 $@