Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
[gnulib.git] / modules / arpa_inet
1 Description:
2 A <arpa/inet.h> for systems lacking it (e.g., Mingw).
3
4 Files:
5 lib/arpa_inet.in.h
6 m4/arpa_inet_h.m4
7
8 Depends-on:
9 sys_socket
10
11 configure.ac:
12 gl_HEADER_ARPA_INET
13 AC_PROG_MKDIR_P
14
15 Makefile.am:
16 BUILT_SOURCES += $(ARPA_INET_H)
17
18 # We need the following in order to create <arpa/inet.h> when the system
19 # doesn't have one.
20 arpa/inet.h:
21         @MKDIR_P@ arpa
22         rm -f $@-t $@
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed \
25               -e 's|@''GNULIB_INET_NTOP''@|$(GNULIB_INET_NTOP)|g' \
26               -e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \
27               < $(srcdir)/arpa_inet.in.h; \
28         } > $@-t
29         mv $@-t $@
30 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
31 MOSTLYCLEANDIRS += arpa
32
33 Include:
34 #include <arpa/inet.h>
35
36 License:
37 LGPLv2+
38
39 Maintainer:
40 Simon Josefsson