Re: provide inet_?to? declarations in arpa_inet.h

2008-05-02 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: >> The variable are set to 0 in the inet_ntop/inet_pton modules, via a >> AC_CHECK_DECLS statement. > > No, it isn't. AC_CHECK_DECLS([inet_ntop]...) sets the shell variable > ac_cv_have_decl_inet_ntop to yes or no. It does not set the shell variable > HAVE_

Re: provide inet_?to? declarations in arpa_inet.h

2008-05-01 Thread Bruno Haible
Simon Josefsson wrote: > >> +-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; \ > >>} > [EMAIL PROTECTED] > >>mv [EMAIL PROTECTED] $@ > > > > This cannot be

Re: provide inet_?to? declarations in arpa_inet.h

2008-04-30 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> diff --git a/m4/arpa_inet_h.m4 b/m4/arpa_inet_h.m4 >> index 8f530c5..baddf0d 100644 >> --- a/m4/arpa_inet_h.m4 >> +++ b/m4/arpa_inet_h.m4 >> @@ -32,4 +32,7 @@ AC_DEFUN([gl_ARPA_INET_H_DEFAULTS], >> [ >>GNULIB_INET_NTOP=0;

Re: provide inet_?to? declarations in arpa_inet.h

2008-04-29 Thread Bruno Haible
Simon Josefsson wrote: > diff --git a/m4/arpa_inet_h.m4 b/m4/arpa_inet_h.m4 > index 8f530c5..baddf0d 100644 > --- a/m4/arpa_inet_h.m4 > +++ b/m4/arpa_inet_h.m4 > @@ -32,4 +32,7 @@ AC_DEFUN([gl_ARPA_INET_H_DEFAULTS], > [ >GNULIB_INET_NTOP=0; AC_SUBST([GNULIB_INET_NTOP]) >GNULIB_INET_PTO

Re: provide inet_?to? declarations in arpa_inet.h

2008-04-29 Thread Bruno Haible
Simon Josefsson wrote: > Btw, a solaris system I have access to declares the function as follows > (in system arpa/inet.h): > > #if !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__) > extern int inet_pton(int, const char *_RESTRICT_KYWD, void *_RESTRICT_KYWD); > extern const char *ine

Re: provide inet_?to? declarations in arpa_inet.h

2008-04-29 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> I've tested it better now > > It was still apparently tested only on few systems. As you can see > from doc/posix-functions/inet*.texi, the functions inet_ntop and inet_pton > need to be declared also on HP-UX 11, OSF/1 4.0, Sola

Re: provide inet_?to? declarations in arpa_inet.h

2008-04-29 Thread Bruno Haible
Simon Josefsson wrote: > I've tested it better now It was still apparently tested only on few systems. As you can see from doc/posix-functions/inet*.texi, the functions inet_ntop and inet_pton need to be declared also on HP-UX 11, OSF/1 4.0, Solaris 2.5.1. So the gnulib must be used in these case

Re: provide inet_?to? declarations in arpa_inet.h

2008-04-29 Thread Simon Josefsson
Simon Josefsson <[EMAIL PROTECTED]> writes: > Bruno Haible <[EMAIL PROTECTED]> writes: > >> Hi Simon, >> >>> I would also favor removing both inet_ntop.h and inet_pton.h, and use >>> arpa/inet.h for the declarations, as you suggested. >> >> Me too. > > Yoann, Bruno, > I've pushed the following, pl

Re: provide inet_?to? declarations in arpa_inet.h

2008-04-28 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Hi Simon, > >> I would also favor removing both inet_ntop.h and inet_pton.h, and use >> arpa/inet.h for the declarations, as you suggested. > > Me too. Yoann, Bruno, I've pushed the following, please test it. /Simon >From 33d11481e0930865b73ae2cf69403f

Re: provide inet_?to? declarations in arpa_inet.h

2008-04-26 Thread Bruno Haible
Hi Simon, > I would also favor removing both inet_ntop.h and inet_pton.h, and use > arpa/inet.h for the declarations, as you suggested. Me too. Bruno

Re: provide inet_?to? declarations in arpa_inet.h

2008-04-22 Thread Simon Josefsson
Yoann Vandoorselaere <[EMAIL PROTECTED]> writes: > Hi Simon, > > Le mardi 22 avril 2008 à 10:54 +0200, Simon Josefsson a écrit : >> Gnulib's current (minimal) arpa/inet.h for MinGW doesn't declare >> inet_ntop and inet_pton, which doesn't exist on MinGW. However, gnulib >> has inet_ntop and inet_

Re: provide inet_?to? declarations in arpa_inet.h

2008-04-22 Thread Yoann Vandoorselaere
Hi Simon, Le mardi 22 avril 2008 à 10:54 +0200, Simon Josefsson a écrit : > Gnulib's current (minimal) arpa/inet.h for MinGW doesn't declare > inet_ntop and inet_pton, which doesn't exist on MinGW. However, gnulib > has inet_ntop and inet_pton modules with their own header files. This > patch ma

provide inet_?to? declarations in arpa_inet.h

2008-04-22 Thread Simon Josefsson
Hi, Gnulib's current (minimal) arpa/inet.h for MinGW doesn't declare inet_ntop and inet_pton, which doesn't exist on MinGW. However, gnulib has inet_ntop and inet_pton modules with their own header files. This patch makes sure that arpa/inet.h provides the expected declarations. Comments? Yoann