comparison modules/arpa_inet @ 9964:d0caaa0ca4a6

Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
author Simon Josefsson <simon@josefsson.org>
date Wed, 23 Apr 2008 07:59:31 +0200
parents 404dc8725caf
children bef830fad24f
comparison
equal deleted inserted replaced
9963:c7bacb867b81 9964:d0caaa0ca4a6
1 Description: 1 Description:
2 A <arpa/inet.h> for systems lacking it (e.g., Mingw). 2 A <arpa/inet.h> for systems lacking it (e.g., Mingw).
3 3
4 Files: 4 Files:
5 lib/arpa_inet.in.h
5 m4/arpa_inet_h.m4 6 m4/arpa_inet_h.m4
6 7
7 Depends-on: 8 Depends-on:
8 sys_socket 9 sys_socket
9 10
18 # doesn't have one. 19 # doesn't have one.
19 arpa/inet.h: 20 arpa/inet.h:
20 @MKDIR_P@ arpa 21 @MKDIR_P@ arpa
21 rm -f $@-t $@ 22 rm -f $@-t $@
22 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 23 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23 echo '#include <sys/socket.h>'; \ 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; \
24 } > $@-t 28 } > $@-t
25 mv $@-t $@ 29 mv $@-t $@
26 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t 30 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
27 MOSTLYCLEANDIRS += arpa 31 MOSTLYCLEANDIRS += arpa
28 32