From 76cf48a5c16af4c966b81479575cc107edae724f Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 15 Dec 2000 14:29:54 +0000 Subject: [PATCH] (inet_ntoa, inet_ntop, inet_pton): add necessary includes when testing git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9397 ec53bebd-3082-4978-b11e-865c3cabbd6b --- cf/roken-frag.m4 | 48 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/cf/roken-frag.m4 b/cf/roken-frag.m4 index 2518a6d53..c4103ffe4 100644 --- a/cf/roken-frag.m4 +++ b/cf/roken-frag.m4 @@ -273,9 +273,6 @@ AC_BROKEN([ \ gettimeofday \ getuid \ getusershell \ - inet_aton \ - inet_ntop \ - inet_pton \ initgroups \ innetgr \ iruserok \ @@ -317,6 +314,51 @@ AC_BROKEN([ \ writev \ ]) +AC_BROKEN2(inet_aton, +[#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_INET_H +#include +#endif], +[0,0]) + +AC_BROKEN2(inet_ntop, +[#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_INET_H +#include +#endif], +[0, 0, 0, 0]) + +AC_BROKEN2(inet_pton, +[#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_INET_H +#include +#endif], +[0,0,0]) + dnl dnl Check for sa_len in struct sockaddr, dnl needs to come before the getnameinfo test