diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-04-23 07:59:31 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-04-23 07:59:31 +0200 |
commit | 88a40fa4f8a039aacbe54ce68e61ed1cdea6a0bf (patch) | |
tree | 1550610f207682df61a36fde7a872df12301a978 /modules | |
parent | b6f8b81bb96a269a48b76e42fc46469941e9de98 (diff) | |
download | gnulib-88a40fa4f8a039aacbe54ce68e61ed1cdea6a0bf.tar.gz |
Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/arpa_inet | 6 | ||||
-rw-r--r-- | modules/inet_ntop | 1 | ||||
-rw-r--r-- | modules/inet_pton | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/modules/arpa_inet b/modules/arpa_inet index 5193952323..e5934accbf 100644 --- a/modules/arpa_inet +++ b/modules/arpa_inet @@ -2,6 +2,7 @@ Description: A <arpa/inet.h> for systems lacking it (e.g., Mingw). Files: +lib/arpa_inet.in.h m4/arpa_inet_h.m4 Depends-on: @@ -20,7 +21,10 @@ arpa/inet.h: @MKDIR_P@ arpa rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - echo '#include <sys/socket.h>'; \ + sed \ + -e 's|@''GNULIB_INET_NTOP''@|$(GNULIB_INET_NTOP)|g' \ + -e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \ + < $(srcdir)/arpa_inet.in.h; \ } > $@-t mv $@-t $@ MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t diff --git a/modules/inet_ntop b/modules/inet_ntop index 544ab87111..1779359ea5 100644 --- a/modules/inet_ntop +++ b/modules/inet_ntop @@ -14,6 +14,7 @@ netinet_in configure.ac: gl_INET_NTOP +gl_ARPA_INET_MODULE_INDICATOR([inet_ntop]) Makefile.am: diff --git a/modules/inet_pton b/modules/inet_pton index c9a4fac326..3b6166d800 100644 --- a/modules/inet_pton +++ b/modules/inet_pton @@ -14,6 +14,7 @@ netinet_in configure.ac: gl_INET_PTON +gl_ARPA_INET_MODULE_INDICATOR([inet_pton]) Makefile.am: |